Domain: SYSFILE information
The SYSLST( ) function supplies the name of the file (alternative: a library element or a list variable) assigned to the system file SYSLST.
Format
SYSLST( ) |
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 SYSLST is assigned to
*DUMMY
SYSLST 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 SYSLST is assigned to.
*VAR(variable)
List variable that SYSLST is assigned to.
*PRIMARY
The primary assignment applies to SYSLST (temporary SPOOLOUT file (EAM file)).
Error message
SDP0435 DESIRED INFORMATION NOT AVAILABLE
Example
Output for various assignments:
SYSLST is assigned to a file
/ASSIGN-SYSLST TO=PROTOCOL.1 /A = SYSLST() /SHOW-VARIABLE A A = :2OSG:$USER1.PROTOCOL.1
SYSLST is assigned to a dummy file
/ASSIGN-SYSLST TO=*DUMMY /A = SYSLST() /SHOW-VARIABLE A A = *DUMMY
SYSLST is assigned to a library element
/ASSIGN-SYSLST TO=*LIB-ELEM(LIB=ASS.PLAMLIB,ELEM=PROTOCOL.1) /A = SYSLST() /SHOW-VARIABLE A A = *LIB-ELEM(:2OSG:$USER1.ASS.PLAMLIB,PROTOCOL.1(*UPPER-LIMIT),P)
SYSLST is assigned to a list variable
/ASSIGN-SYSLST TO=*VARIABLE(PROT-1) /A = SYSLST() /SHOW-VARIABLE A A = *VAR(PROT-1)