Call Conversion (CALL)

Top  Previous  Next

 

The CALL conversion code calls a subroutine. It behaves identically for input conversion with ICONV() and output conversion with OCONV().

 

The format of this conversion code is

CALL expr

where

 

exprevaluates to the name of a catalogued subroutine.

 

 

The CALL conversion code calls a catalogued subroutine that must be defined to have a single argument. This argument is used to pass the data value being converted into the subroutine and to return the result of the conversion.

 

 

Example

 

X = OCONV(DATA, 'CALL MYSUB')