API call to start trapping transactions for all users
A call to trap recording for a specific transaction code can be made through the API. Alternatively, a list of transaction codes can be provided in the BZUCFG file for the CICS region. The transaction code CPIH is always trapped.
To request the trapping of a transaction, an EXEC CICS LINK call needs to be made to program BZUCIDRP passing it a COMMAREA in the following format:
| Area Type | Description |
| Character 4 bytes | The function that the API is to perform. Set this value to TRAP. |
| Integer 4 bytes | The status code returned by the call. Refer to the API Status Codes table. |
| Integer 4 bytes | CICS response code (EIBRESP) if an error occurred. |
| Integer 4 bytes | CICS response code (EIBRESP2) if an error occurred. |
| Hex 8 bytes | Return the token that was provided by the STRT call. |
| Character 4 bytes | The name of the transaction to include or exclude from recordings. |
| Character 1 byte | Specify Y to include the transaction and N to exclude. |