In this example, a GENCB macro is used to generate a request parameter
list.
ACCESS GENCB BLK=RPL, x
ACB=ACCESS, x
AM=VSAM, x
AREA=WORK, x
AREALEN=125, x
ARG=SEARCH, x
LOC=ANY, x
MSGAREA=MESSAGE, x
MSGLEN=128, x
OPTCD=(SKP,UPD)
ACCESS ACB MACRF=(SKP,OUT)
WORK DS CL125
SEARCH DS CL8
MESSAGE DS CL128
The GENCB macro’s parameters are:
- BLK specifies a request parameter list is generated.
- ACB specifies that the request parameter list is associated with
a data set and processing options identified by ACCESS.
- AREA and AREALEN specify a 125-byte work area used for processing
records.
- ARG specifies the address of the search argument.
- LOC specifies that VSAM obtain storage for the request parameter
list in an area above 16 megabytes.
- MSGAREA and MSGLEN specify a 128-byte area used for physical-error
messages.
- OPTCD specifies the subparameters that govern the request defined
by the request parameter list identified by SKP and UPD.