COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Table 100 Integer Intrinsic Functions (continued)
Value ReturnedFunction Name
Greatest integer not greater than argumentINTEGER Function
Integer date equivalent of standard date (YYYYMMDD )*INTEGER-OF-DATE Function
Integer date equivalent of Julian date (YYYYDDD )*INTEGER-OF-DAY Function
Integer part of argumentINTEGER-PART Function
Length of argumentLENGTH Function
First argument modulo second argumentMOD Function
Ordinal position of argument in program collating sequenceORD Function
Ordinal position of maximum argumentORD-MAX Function
Ordinal position of minimum argumentORD-MIN Function
Zero or character position of first invalid characterTEST-NUMVAL Function
Zero or character position of first invalid characterTEST-NUMVAL-C Function
* Date conversion functions use the Gregorian calendar.
Variable-Type Intrinsic Functions
The type of some intrinsic functions depends on the type(s) of its arguments.
Table 101 Variable-Type Intrinsic Functions
Value ReturnedFunction Name
Value of maximum argumentMAX Function
Value of minimum argumentMIN Function
Value of maximum argument minus value of minimum
argument
RANGE Function
Sum of argumentsSUM Function
Table 102 How Argument Type Determines Variable-Type Intrinsic Function Type
Function TypeArgument Type
AlphanumericAlphabetic
AlphanumericAlphanumeric
IntegerInteger
NumericNumeric (some can be integer)
NOTE: Not every function in Table 101 can have arguments of every type in Table 102. For
valid argument types for a particular function, see the description of that function later in this
section.
Argument Types
Table 103 lists the types of arguments that intrinsic functions can have, tells you what you must
specify for an argument of each type, and tells you what is used in determining the function’s value.
NOTE: Not every intrinsic function can have arguments of every type in Table 103. For valid
argument types for a particular function, see the description of that function later in this section.
Argument Types 657