Use the CBSTAT subcommand to analyze a specific control block. IBM® provides exit routines that process ASCBs and TCBs; the exit routines are specified by parmlib members embedded in the BLSCECT parmlib member. CBSTAT generates a report for ASCBs that encompasses address space level information. Similarly, CBSTAT generates a report for TCBs that contains task level information about control blocks other than the TCB.
You can also use CBSTAT to get information about resource initialization modules (RIMs) that fail during IPL/NIP processing. Specify the STRUCTURE attribute parameter, but instead of a control block name, specify STORESTATUS. CBSTAT returns the name of the failing RIM(s) with corresponding abend and reason codes. (See the example on viewing data about failing NIP RIMs..)
BLS01040I No errors were detected by the CBSTAT exits
BLS01041I The CBSTAT exits defined in BLSCECT do not process
STRUCTURE(yyyyyyyy)
BLS01043I CBSTAT requires the specification of a STRUCTURE
in virtual storage
BLS18100I adr-space adr NOT AVAILABLE
BLS18058I Errors detected in STRUCTURE(name) at ASID(n) address
CBSTAT data-descr
-------- SETDEF-Defined Parameters -------------------------
Note: You can override the following SETDEF parameters.
See SETDEF subcommand — set defaults.
[ FLAG(severity) ]
[ PRINT | NOPRINT ]
[ TERMINAL | NOTERMINAL ]
[ TEST | NOTEST ]
Code | Explanation |
---|---|
00 | Successful completion. |
04 | Attention, subcommand completed with a condition that may interest you. |
08 | Error, subcommand encountered an error condition that may interest you. |
12 | Severe error, no CBSTAT exits exist for the requested control block type or user request forced early end to the subcommand processing. |
16 | Ending error, the identified control block failed the validity check. |
COMMAND ===> cbstat ascb1 structure(ascb)
CBSTAT generates the output (see Figure 1) for the master scheduler address space, after accessing and validity checking the ASCB. IPCS invokes the CBSTAT exits for ASCBs. Note that if the symbol, ascb1, is defined in the IPCS symbol table and if that symbol has the STRUCTURE attribute defined, the STRUCTURE parameter can be omitted from the example.
STATUS FOR STRUCTURE(ASCB) AT 00FC8B00. NOCPU ASID(X'0001')
IRA10102I This address space is on the SRM IN queue.
COMMAND ===> cbstat 7fa030. structure(tcb)
CBSTAT generates the output for the specified TCB (Figure 2) . IPCS invokes the CBSTAT exits for TCBs.
STATUS FOR STRUCTURE(TCB) AT 007FA030. ASID(X'07D1')
IEA21005I Task is in recovery processing, LIFO summary of active
recovery environments follows:
IEA21007I In ESTAE at IGC0006C+010D70 for S003F at IGC0006C+01045A,
SDWA at 007B0B40
COMMAND ===> cbstat f62180. structure(ascb)
CBSTAT generates the output for the ASCB (Figure 3).
STATUS FOR STRUCTURE(ASCB) AT 00F62180. CPU(X'00') ASID(X'0001')
IRA10102I This address space is on the SRM WAIT queue.
IRA10104I The reason for swap-out is long wait (3).
COMMAND ===> cbstat structure(storestatus)
CBSTAT generates the output shown in Figure 4.
STATUS FOR STRUCTURE(STORESTATUS) AT 00FD7100 NOCPU ASID(X'0001')
IEA41001I NIP RIM IEAVNP11 has failed
IEA41002I ABEND=0C4 REASON=04