skip to main content

Procedure Division : Conformance for parameters and returning items : Parameters : Elementary items passed by content

Elementary items passed by content
If the formal parameter is of class pointer or an object reference, the conformance rules shall be the same as if a SET Statement were performed in the activating runtime element with the argument as the sending operand and the corresponding formal parameter as the receiving operand.
If the formal parameter is not of class object or pointer, the conformance rules are the following:
1.
2.
a.
If the formal parameter is numeric, the conformance rules are the same as for a COMPUTE Statement with the argument as the sending operand and the corresponding formal parameter as the receiving operand.
b.
If the formal parameter is an index data item, the conformance rules are the same as for a SET Statement with the argument as the sending operand and the corresponding formal parameter as the receiving operand.
c.
If the formal parameter is described with the ANY LENGTH clause, its length is considered to match the length of the corresponding argument.
d.
Otherwise, the conformance rules are the same as for a MOVE Statement with the argument as the sending operand and the corresponding formal parameter as the receiving operand

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left