LIBRDCB (Librarian Data Control Block) Macro

This macro causes the Librarian Data Control Block (LDCB) for the Library Access Service to be either generated, modified, or mapped.

If it is generated, the addressed area is cleared and all specified operand values are inserted. Operand specifications, which are given with the function macro LIBRM overwrites these initial specifications (always the latest specification of an operand is valid).

All other operands are described together with the macros to which they apply.
Note:
  1. The LDCB must be generated (with FUNC=GEN) to be used as control block before any LIBRM request can be given.
  2. The DSECT of the LDCB is created automatically, if necessary, for FUNC=GEN|MOD or any LIBRM request.
  3. The registers that are used in expanded code are 0 and 1.

Format

Read syntax diagramSkip visual syntax diagramlabelLIBRDCB FUNC=MAPGENMOD,AREA= areaname,BUFFER= buffer,BUFSIZE= size_value,CHAIN= chain,CHAINID= chainid,CONT=YESNO,DATAID= did,DATALEN= dlen,DATA= data,DIRINF= dirinf,DIRINFL= len_value,EODAD= label,EROPT=RETCANCEL,ERRAD= label,LIB= lib,SUBLIB= sublib,MEMBER= membername,TYPE= membertype,NOTFND= label,RECFM=FS,RECNO= recno_value,UNITS= units_value

Requirements for the caller

AMODE:
24 or 31
RMODE:
ANY
ASC Mode:
Primary

Parameters

FUNC
Indicates the main function of the macro LIBRDCB.
MAP
Provides a mapping DSECT of the LDCB. No other operands are allowed.
GEN
Generates the LDCB at the given address.
MOD
Modifies the LDCB at the given address.
AREA=areaname
Specifies the name of the area where the LDCB is to be generated or modified.