Domain: Test functions
The IS-LIBRARY( ) function checks whether the specified file is entered in the catalog as a PLAM library.
If the file is not entered in the catalog as a PLAM library, IS-LIBRARY( ) supplies the result FALSE.
If the specified file does not exist, error handling is initiated.
See the “LMS” manual [11] for more information on working with PLAM libraries.
Format
IS-LIBRARY( ) |
FILE = string_expression |
Result type
BOOLEAN
Input parameters
FILE = string_expression
“string_expression” designates a file name according to the SDF file type <filename 1...54>.
Result
TRUE
The file designated with the parameter FILE is entered in the catalog as a PLAM library.
FALSE
The file designated with the parameter FILE is not entered in the catalog as a PLAM library.
Error messages
No error messages
Example
/A = IS-LIBRARY('MY-LIBRARY') /SHOW-VARIABLE A /A = TRUE /SHOW-FILE-ATTRIBUTES MY-LIBRARY,INF=ALL
The output from the SHOW-FILE-ATTRIBUTES command shows the complete catalog entry for MY-LIBRARY. The field TYPE contains the value PLAM-LIB.
|