REORGLIB reorganizes a library. In the process, as much unused storage space as possible is released at the end of the library file. This can often substantially reduce the amount of storage space needed by a library. If this space is not reduced, e.g. because following a system error blocks at the back may already be reserved but are not yet being used, or if the absolute minimum size of the library is to be reached, a buffer should be used for copying (COPY-LIBRARY).
The library is determined by LD.
Call parameters
The parameter structures must be given in the following sequence in the subroutine call.
Parameter | Field | Meaning |
CB | SCBVERSION FUNCTION SUBCODE ACC LD-RETURN | Function control block Interface version Function code X'06' Subcode currently not used: UNUSE Subroutine access identification Full DMS file name in LD |
LD | PASSWORD LINK MAX-NAME-LEN NAME | Library descriptor Password as per PASSWORD command Link name Maximum length of library name Library name |
Return parameters
Parameter | Field | Meaning |
CB | RETURNCODE LMS-MSG DMS-MSG PLAM-MSG | Function control block Return code LMS message code DMS message code PLAM message code |
LD | NAME | Library descriptor Full DMS file name of library (dependent on LD-RETURN field of CB) |