z/OS JES2 Macros
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


$DCBDYN – Call the dynamic DCB service routine

z/OS JES2 Macros
SA32-0996-00

Use $DCBDYN macro as the interface to the $DCBDYN service routine to attach or detach a JES2 data control block (DCB) and data extent block (DEB) for a specified device control table (DCT).

Format description

Read syntax diagramSkip visual syntax diagram
                                             .-(--R1--)---.   
>>-+--------+--$DCBDYN--+-ATTACH-+--,DCT--=--+-label------+----><
   '-symbol-'           '-DETACH-'           '-(--R--n--)-'   

ATTACH
Requests that a DCB and/or DEB (if one is required) be dynamically created. If the DCT does not require a DCB (for example, one has already been created), JES2 takes no further action.
DETACH
Requests that the specified DCB/DEB be dynamically deleted. If the DCT does not require a DCB or if there is no DCB already attached, JES2 takes no further action.
DCT=
Specifies a label or register containing the address of the DCT to either be attached or detached.

Return codes

The following return codes (in decimal) are returned in register 15.
Return Code
Meaning
0
DCB successfully ATTACHed or DETACHed as requested
4
DCB ATTACH failed (GETMAIN unsuccessful)

Environment

  • Main task.
  • 31-bit addressing mode only.
  • $WAIT can occur.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014