LIBRM SHOWCB (Show Librarian Control Block) Macro
The macro retrieves the length of the specified control block and returns it in the field CBLEN.
Format
Requirements for the caller
- AMODE:
- 24 or 31
- RMODE:
- ANY
- ASC Mode:
- Primary
Parameters
- CB=LDCB
- Identifies the LDCB (Librarian Data Control Block).
- CB=MBST
- Identifies the member status control block INLCMBST.
- CB=SBST
- Identifies the sublibrary status control block INLCSBST.
- CB=LBST
- Identifies the library status control block INLCLBST.
- CB=NOTEINF
- Identifies the NOTE information word.
- CBLEN=name
- Specifies the name of the fullword that is to receive the length of the identified control block.
Note:
- The SHOWCB macro service also requires registers 0, 1, 13, 14 and 15.
- With the SHOWCB function the storage size for the used library control blocks can be determined at run time of the application. This gives the possibility to enlarge the control blocks without recompilation.
- The CBLEN value that is returned for the LBST (library status) is the size necessary to hold all 16 extent information records.