Domain: SYSFILE information
The SYSOUT( ) function supplies the name of the file (alternative: a library element or a list variable) assigned to the system file SYSOUT.
Format
SYSOUT( ) |
Result type
STRING
Input parameters
None
Result
The format of the output corresponds to the output of the /SHOW-SYSTEM-FILE-ASSIGNMENT command (see the “Commands” manual [3]).
File
Name of the file that SYSOUT is assigned to
*DUMMY
SYSOUT is assigned to a pseudo-file.
*LIB-ELEM(library,element(version),type)
Library element (designated by the name of the library, the name of the element with its version and the element type) that SYSOUT is assigned to.
*VAR(variable)
List variable that SYSOUT is assigned to.
*PRIMARY
The primary assignment applies to SYSOUT (terminal in the dialog or the SPOOLOUT file (S.OUT file) in batch mode).
Error message
SDP0435 DESIRED INFORMATION NOT AVAILABLE
Example
Output for various assignments:
SYSOUT is assigned to a file
/ASSIGN-SYSOUT TO=OUT.LOG.1 /A = SYSOUT() /SHOW-VARIABLE A A = :2OSG:$USER1.OUT.LOG.1
SYSOUT is assigned to a dummy file
/ASSIGN-SYSOUT TO=*DUMMY /A = SYSOUT() /SHOW-VARIABLE A A = *DUMMY
SYSOUT is assigned to a library element
/ASSIGN-SYSOUT TO=*LIB-ELEM(LIB=ASS.PLAMLIB,ELEM=OUT.LOG.1) /A = SYSOUT() /SHOW-VARIABLE A A = *LIB-ELEM(:2OSG:$USER1.ASS.PLAMLIB,OUT.LOG.1(*UPPER-LIMIT),P)
SYSOUT is assigned to a list variable
/ASSIGN-SYSOUT TO=*VARIABLE(LOG-1) /A = SYSOUT() /SHOW-VARIABLE A A = *VAR(LOG-1)