The ITZQUERY macro is used to query whether a transaction or work unit should be traced.
The requirements for the caller are:
Environmental factor | Requirement |
---|---|
Minimum authorization: | Problem state. PSW key 8 - 15 |
Dispatchable unit mode: | Task or SRB |
Cross memory mode: | Any PASN, any HASN, any SASN |
AMODE: | 31-bit |
ASC mode: | Primary |
Interrupt status: | Enabled for I/O and external interrupts |
Locks: | No locks may be held |
Control parameters: | Control parameters must be in the primary address space. |
Any module that invokes this macro must include the CVT and IHAECVT macros.
None.
Before issuing the ITZQUERY macro, the caller does not have to place any information into any access register (AR).
Some callers depend on register contents remaining the same before and after issuing a macro. If the macro changes the contents of registers on which the caller depends, the caller must save them before issuing the macro and restore them after the macro returns control.
Specifying the MONTKN in a monitoring environment results in a faster query.
The ITZQUERY macro is written as follows:
Syntax | Description |
---|---|
name | name: symbol. Begin name in column 1. |
␢ | One or more blanks must precede ITZQUERY. |
ITZQUERY | |
␢ | One or more blanks must follow ITZQUERY. |
,MONTKN=montkn | montkn: RS-type address |
,MONTKN=0 | Default: MONTKN=0 |
,TRACETKN=tracetkn | tracetkn: RS-type address |
,TRACELVL=tracelvl | tracelvl: RS-type address |
,PLISTVER= | |
IMPLIED_VERSION | Default: PLISTVER=IMPLIED_VERSION |
,PLISTVER=MAX | |
,PLISTVER=0 | |
,MF=S | Default: MF=S |
,MF=(L,list addr) | list addr: RS-type address or register (1) - (12) |
,MF=(L,list addr,attr) | |
,MF=(L,list addr,0D) | |
,MF=(E,list addr) | |
,MF=(E,list addr,COMPLETE) | |
,MF=(E,list addr,NOCHECK) | |
,MF=(M,list addr) | |
,MF=(M,list addr,COMPLETE) | |
,MF=(M,list addr,NOCHECK) | |
The parameters are explained as follows:
It is recommended that MONTKN be specified for a monitoring environment to keep the query pathlength short and fast. The default is 0.
To code: Specify the RS-type address of a fullword field.
To code: Specify the RS-type address of a 32-character field.
To code: Specify the RS-type address of a one-byte field.
If you can tolerate the size change, IBM® recommends that you always specify PLISTVER=MAX on the list form of the macro. Specifying MAX ensures that the list form parameter list is always long enough to hold all the parameters you might specify on the execute form of the macro when both are assembled with the same level of the system. In this way, MAX ensures that the parameter list does not overwrite nearby storage.
Use MF=S to specify the standard form of the macro, which builds an inline parameter list and generates the macro invocation to transfer control to the service. MF=S is the default.
Use MF=L to specify the list form of the macro. Use the list form together with the execute form of the macro for applications that require reentrant code. The list form defines an area of storage that the execute form uses to store the parameters. Only the PLISTVER parameter may be coded with the list form of the macro.
Use MF=E to specify the execute form of the macro. Use the execute form together with the list form of the macro for applications that require reentrant code. The execute form of the macro stores the parameters into the storage area defined by the list form, and generates the macro invocation to transfer control to the service.
None.
When the ITZQUERY macro returns control to your program, GPR 15 contains a return code.
The following table identifies the hexadecimal return and reason codes and the equate symbol associated with each reason code.
Equate Symbol | Meaning and Action | |
---|---|---|
0 | — | Equate Symbol: ITZGOOD Meaning: Success. Action: Trace this work unit. Trace token is non-zero. |
4 | — | Equate Symbol: ITZNOTR Meaning: Work unit not to be traced. Action: Do not trace this work unit. |