This statement displays all attributes set for the library. These are as follows:
the attributes set by means of MODIFY-LIBRARY-ATTRIBUTES
library size in 2-K units
number of 2-K units available (can be removed by copying)
library format (NK2/NK4)
UPAM protection (Y/N)
SHOW-LIBRARY-ATTRIBUTES | ||||||||||||||||||||||||||||||||||||||||||||
|
LIBRARY = *STD / <filename 1..54 without-vers> / *LINK(...)
The library whose attributes are to be displayed.
LIBRARY = *STD
The global library opened by OPEN-LIBRARY is displayed.
LIBRARY = <filename 1..54 without-vers>
Name of the library whose status is to be displayed.
LIBRARY = *LINK(...)
The status of the library assigned via a link name is displayed.
LINK-NAME = <structured-name 1..8>
Link name of the library; this name was defined by means of a /ADD-FILE-LINK command prior to calling LMS.
TEXT-OUTPUT = *LOGGING-PARAMETERS / *NONE
Controls the log output.
TEXT-OUTPUT = *LOGGING-PARAMETERS
The log is output to the output medium specified with MODIFY-LOGGING-PARAMETERS TEXT-OUTPUT=.
TEXT-OUTPUT = *NONE
The log output is suppressed, apart from error messages.
TEXT-OUTPUT = *SYSOUT
The output is written to SYSOUT.
TEXT-OUTPUT = *SYSLST(...)
The output is written to SYSLST.
SYSLST-NUMBER = *STD / <integer 1..99>
Determines the SYSLST file to which the output is to be written.
SYSLST-NUMBER = *STD
The system file SYSLST is used.
SYSLST-NUMBER = <integer 1..99>
The system file with the specified number from the set SYSLST01 through SYSLST99 is used.
TEXT-OUTPUT = *EDT(...)
Output is to the work file 9 of EDT. If an error occurs during log output, then the system switches to the default output stream (SYSOUT).
WRITE-MODE = *EXTEND / *REPLACE
Write mode of the output in relation to the contents of work file 9.
WRITE-MODE = *EXTEND
If data exists in work file 9, the output will be added to this data. If there is no data in the file, the output will be written at the beginning of the file.
WRITE-MODE = *REPLACE
The output will be written at the beginning of work file 9. Any data that is already in the file will be replaced.
STRUCTURE-OUTPUT = *SYSINF / *NONE / <composed-name 1..255>(...)Structured output.
STRUCTURE-OUTPUT = *SYSINF
The structured output is placed in the SYSINF stream assigned by means of ASSIGN-STREAM (see the “SDF-P“ manual [12 (Related publications)]).
STRUCTURE-OUTPUT = *NONE
There is no structured output.
STRUCTURE-OUTPUT =<composed-name 1..255>(...)
Specifies the S variable in which the structured output is to be placed. This variable must be declared as a dynamic list variable.
(Command: DECLARE-VARIABLE NAME =...(TYPE=*STRUCTURE), MULTIPLE-ELEMENTS=*LIST
)
WRITE-MODE = *REPLACE / *EXTEND
Specifies whether the structured output is to be appended to any existing data in the list variable or it to be written over it.
WRITE-MODE = *REPLACE
Overwrites any existing data in the list variable.
WRITE-MODE = *EXTEND
Appends the new list members to the existing list, if any.
Statement return code
(SC2) | SC1 | Maincode | Meaning |
| 0 | CMD0001 | No error |
Note
The individual variable members are described in chapter "Format of LMS output in Svariables" (8 Format of LMS output in S variables).
Required access rights
Read authorization for LIBRARY.
Example
//SHOW-LIBRARY-ATTRIBUTES LIB=BSPLIB INPUT LIBRARY= :1OSQ:$USER.BSPLIB READ-PASS = *NONE READ-USER = *OWNER - - WR-PASS = *YES WR-USER = *OWNER - - EXEC-PASS = *NONE EXEC-USER = *OWNER - - HOLD-PASS = *NONE HOLD-USER = *OWNER - - ADMIN-PASS = *NONE ADMIN-USER = *OWNER - - FILE-SIZE = 291 FREE-SIZE = 62 FORMAT = NK2 UPAM-PROT = N ACCESS-DATE= *KEEP WR-CONTRPL = *NONE STORAGE= *STD