In S procedures, the transmission of S variables is controlled by means of the command TRANSMIT-BY-STREAM. This command is used at the client side to control the transfer of variables to and/or from the specified server via a selected S variable stream.
The STREAM-NAME operand is used to specify the name of the selected variable stream for this activity.
The remaining operands, i.e. VARIABLE-NAME, RETURN-VARIABLE-NAME, CONTROL-VAR-NAME and RET-CONTROL-VAR-NAME, are used to specify which variables are to be transmitted to or from the server, and correspond to the settings for
ASSIGN-STREAM ...,TO=*VARIABLE( ). That is, as for ASSIGN-STREAM, the variables specified here must be declared as structures. Likewise, as far as the processing sequence of the data items is concerned, the variables specified for VARIABLE-NAME and CONTROL-VAR-NAME take precedence over the others.
For further notes (particularly about the default header) see the TRANSMIT-BY-STREAM command on "TRANSMIT-BY-STREAM Transmit variables ".
Example
/DECLARE-VARIABLE A1(TYPE=*STRUCTURE),MULTIPLE-ELEMENTS=*LIST /DECLARE-VARIABLE A2(TYPE=*STRUCTURE) /ASSIGN-STREAM SYSINF,TO=*VARIABLE(A1) /TRANSMIT-BY-STREAM SYSINF, VARIABLE=A2, RETURN-VARIABLE=*NONE