Your Browser is not longer supported

Please use Google Chrome, Mozilla Firefox or Microsoft Edge to view the page correctly
Loading...

{{viewport.spaceProperty.prod}}

CLOSE-LIBRARY

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(...)


*LINK(...)



|

LINK-NAME = <structured-name 1..8>

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


1

0
0
1
32
64
130

CMD0001
LMS0036
CMD0230
LMS1002
LMS1004
LMS0041

No error
Library not assigned
Syntax error
Internal error
Other error
System address space exhausted

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)