



The general format of a function-identifier is:
___ Format _____________________________________________________________
| |
| >>__FUNCTION__function-name-1__ ______________________ ______________> |
| | <____________ | |
| |_(____argument-1_|__)_| |
| |
| >__ ____________________ ___________________________________________>< |
| |_reference-modifier_| |
| |
|________________________________________________________________________|
Below, we will show examples of an intrinsic function invocation for an alphanumeric source statement and a numeric source statement.
The alphanumeric source statement:
MOVE FUNCTION UPPER-CASE("hello") TO DATA-NAME.
replaces each lowercase letter in the argument with the corresponding
uppercase letter, resulting in the movement of HELLO into DATA-NAME.
The numeric source statement,
COMPUTE NUM-ITEM = FUNCTION SUM(A B C)
Adds the values of A, B, and C and places the result in NUM-ITEM.
Within a Procedure Division statement, each function-identifier is evaluated at the same time as any reference modification or subscripting associated with an identifier in that same position would be evaluated.
Subtopics:
© Copyright IBM Corp. 1991, 1998
Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.