The SHOW-STREAM-ASSIGNMENT command can be used to request the display of the current assignment of the specified S variable stream(s) (for further details refer to "SHOW-STREAM-ASSIGNMENT Show S variable stream").
The STREAM-NAME operand is used to specify which variable stream(s) should be displayed. If the value specified is *STD-STREAMS, then all the standard variable streams will be output; i.e. all the S variable streams with the prefix “SYS”.
The INFORMATION operand is used to output details of the assigned server. The default setting of *CURRENT-ASSIGNMENT outputs what is specified in the TO operand of the ASSIGN-STREAM command. If *FINAL-DESTINATION is specified, the current server name is output.
The OUTPUT operand is used to specify where the output is to be sent to. Unless otherwise specified it is sent to SYSOUT, and in parallel to the variable specified in the ASSIGN-STREAM command. If *SYSLST is specified, the output will be sent only to SYSLST, and not to any variable.
Example
Input
/DECLARE-VARIABLE VAR1(TYPE=*STRUCTURE),MULTIPLE-ELEMENTS=*LIST /ASSIGN-STREAM SYSINF,TO=*VARIABLE(VAR1) /SHOW-STREAM-ASSIGNMENT SYSINF
Output
STREAM-NAME = SYSINF ASSIGN-LEVEL = 0 DESTINATION = *VARIABLE VARIABLE-NAME = VAR1 VAR-MODE = *EXTEND RETURN-VARIABLE-NAME = *NONE CONTROL-VAR-NAME = *NONE RET-CONTROL-VAR-NAME = *NONE