The SET command is used to create the return parameter object.
Syntax:
|
If the return parameter is simple and requires no fragments or lists, then a SET PARAMETER(*RETURN) command will set the parameter value with the program field value.
If the parameter is a complex object, then the SET PARAMETER(*RETURN) command needs to be called to set the context of future calls to act on this parameter. Several SET FRAGMENT and SET LIST commands might need to be called to fully populate the return parameter object.
Example
SET PARAMETER(*RETURN)