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

Read syntax diagramSkip visual syntax diagramlabelLIBRM SHOWCB,CB=LDCBMBSTSBSTLBSTNOTEINF,CBLEN= name

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:
  1. The SHOWCB macro service also requires registers 0, 1, 13, 14 and 15.
  2. 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.
  3. The CBLEN value that is returned for the LBST (library status) is the size necessary to hold all 16 extent information records.