pTAL Reference Manual (G06.24+, H06.09+, J06.03+)

type
specifies that the subprocedure is a function that returns a result and indicates the data type
of the returned result. type can be any data type described in Chapter 3 (page 46).
identifier
is the identifier of the subprocedure.
parameter-list
param-name
is the identifier of a formal parameter. The number of formal parameters a subprocedure
can have is limited by space available in the parameter area of the subprocedure.
param-pair
is a pair of formal parameter identifiers that comprise a language-independent string
descriptor in the form:
string
is the identifier of a standard or extended STRING simple pointer. The actual parameter
is the identifier of a STRING array or simple pointer declare inside or outside a structure.
length
is the identifier of a directly addressed INT simple variable. The actual parameter is an
expression that specifies the length of string in bytes.
VARIABLE
specifies that the compiler treats all parameters as optional, even if some are required by your
code.
RETURNSCC
causes a subprocedure to return a condition code. The compiler reports an error if a
subprocedure attempts to test the condition code after calling a subprocedure that does not
specify RETURNSCC. Subprocedures declared with RETURNSCC cannot return 64-bit values.
258 Procedures, Subprocedures, and Procedure Pointers