Use the FINDUCB subcommand to locate the unit control block (UCB) for a specified device. When the subcommand finds the control block, it creates an entry in the symbol table for UCBdddd, where dddd is the device number.
{FINDUCB } device-number
{FINDU }
-------- SETDEF-Defined Parameters -------------------------
Note: You can override the following SETDEF parameters.
See SETDEF subcommand — set defaults.
[ ACTIVE | MAIN | STORAGE ]
[ DSNAME(dsname) | DATASET(dsname) ]
[ FILE(ddname) | DDNAME(ddname) ]
[ PATH(path-name) ]
[ DISPLAY[(display-options)] ]
[ NODISPLAY[(display-options)] ]
[ FLAG(severity) ]
[ PRINT | NOPRINT ]
[ TERMINAL | NOTERMINAL ]
[ TEST | NOTEST ]
[ VERIFY | NOVERIFY ]
See Standard subcommand return codes for a description of the return codes produced by the FINDUCB subcommand.
COMMAND ===> FINDUCB 8000
Even if you are using captured UCBs, FINDUCB returns the address of the actual UCB. In this example, the actual UCB address is 01D0E028.
UCB8000 - UNIT CONTROL BLOCK FOR CHANNEL TO CHANNEL ADAPTER
LIST 01D0E028 ASID(X'0001') POSITION(X'-0008') LENGTH(48) STRUCTURE(UCBCTC)