TRAP command

Use the TRAP command to specify message trapping criteria for HLL and REXX command procedures. When the TRAP command is issued, all subsequent messages that match the conditions that are defined by the trapping criteria are added to the message queue (TRAPQ).

Return Codes:

Return Code Name Value Description
CNM_GOOD     0 Everything is OK.
CNM_BAD_INVOCATION     4 TRAP was not issued from an HLL or REXX command procedure.
CNM_BAD_SYNTAX    12 Syntax error. When DSI028I is issued, check domainid.token syntax. When DSI604I is issued, check the format of the TRAP command according to the operand specified.
CNM_BAD_COMMAND   144 TRAP was not issued from a command procedure running under an OST or NNT.
CNM_BAD_MRBLD + X 18000 + X Nonzero return code X. See values for X below.
Values for X
Return Code Value Value for X Description
18000 + X 8 Request for storage has failed.

Refer to the IBM® Tivoli® NetView for z/OS® Command Reference or the NetView® online help for more information about the TRAP command.