This statement closes the specified library/libraries.
If the LMS output is held in a library member, then the associated library will not be closed and an error message is issued.
If this statement is specified without parameters, all open libraries are closed.
CLOSE-LIBRARY | ||||||||||||
|
LIBRARY = *ALL / *STD/ <filename 1..54 without-vers> / *LINK(...)Specifies the library or libraries to be closed.
LIBRARY = *ALL
All open libraries are closed.
LIBRARY = *STD
The library opened by OPEN-LIBRARY is closed.
LIBRARY = <filename 1..54 without-vers>Name of the library to be closed.
LIBRARY = *LINK(...)
The library assigned via a link name.
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 the LMS run.
Statement return code
(SC2) | SC1 | Maincode | Meaning |
| 0 | CMD0001 | No error |
Examples
All open libraries are closed.
//CLOSE-LIBRARY
The library that was assigned via the link name lib2 is closed.
//CLOSE-LIBRARY LIBRARY=*LINK(LINK-NAME=LIB2)