Domain: Test functions
The IS-LIBRARY-ELEMENT( ) function checks whether or not the specified library element exists.
Format
IS-LIBRARY-ELEMENT( ) IS-LIB-ELEM( ) |
LIBRARY = string_expression ,ELEMENT = string_expression ,TYPE = string_expression ,VERSION = *HIGHEST-EXISTING / string_expression |
Result type
BOOLEAN
Input parameters
LIBRARY = string_expression
“string_expression” designates a file name which corresponds to the SDF data type<filename 1...54>.
ELEMENT = string_expression
“string_expression” designates a library element which corresponds to the SDF data type<composed-name 1...64>.
TYPE = string_expression
“string_expression” designates a library element type which corresponds to the SDF data type <alphanum-name 1...8>.
VERSION = *HIGHEST-EXISTING / string_expression
Designates a library element version which corresponds to the SDF data type<composed-name 1...24>.
Result
TRUE
The specified library element exists.
FALSE
The specified library element does not exist.
Error messages
SDP0093 ERROR DURING ACCESS OF FILE/LIBRARY ‘(&00)‘ , ERROR ‘(&01)‘ MORE INFORMATION: /HELP-MSG ‘(&01)‘ SDP0454 INVALID PARAMETER : ‘(&00)‘