A reference modification for an alphanumeric function is allowed. If reference modification is specified for a function, the evaluation of the reference modification takes place immediately after the evaluation of the function.
An alphanumeric function can be referenced as an argument for a function which allows an alphanumeric argument.
A numeric function can be referenced as an argument for a function that allows a numeric argument.
A numeric function cannot be used where an integer operand is required, even if the particular reference will yield an integer value. The INTEGER or INTEGER-PART functions can be used to force the type of a numeric argument to be an integer.
+-------------------------------IBM Extension--------------------------------+
A reference modification for a DBCS function is allowed. If reference modification is specified for a function, the evaluation of the reference modification takes place immediately after the evaluation of the function.
A DBCS function can be referenced as an argument for a function that allows a DBCS argument.
A national function can be referenced as an argument for a function that allows a national argument.
A date-time function is allowed as part of a relation condition. If a date-time function is specified in a relation condition, the evaluation of the relation condition takes place immediately after the evaluation of the function.
A date-time function can be referenced as an argument for a function that allows a date-time argument.
A boolean function is allowed as part of a relation condition. If a boolean function is specified in a relation condition, the evaluation of the relation condition takes place immediately after the evaluation of the function.
A boolean function can be referenced as an argument for a function that allows a boolean argument.
+----------------------------End of IBM Extension----------------------------+
An integer function can be referenced as an argument for a function that allows an integer argument.
The COPY statement allows function-identifiers of all types in the REPLACING phrase.
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.