TRAPSAVE


8.0.4, ANSI

 

The TRAPSAVE instruction saves all trapped events. The instruction uses the following format:

 

 

[label]

TRAPSAVE

{traps}

 

Where:

label

Optional. A Program Execution Label.

traps

Required. A previously defined Character String Variable that receives the current trap information.

Flags Affected: EOS

Note the following:

  1. All of the currently active traps are saved in {traps}.

  2. The size required for the {traps} variable may be determined by using the TRAPSIZE instruction.

  3. The traps are not changed or cleared.

  4. If {traps} is too small to hold the information, the EOS flag is set and the data is invalid.

 

 

See Also: TRAPRESTORE, TRAP, TRAPCLR, Program Control Instructions

 



PL/B Language Reference TRAPRESTORE TRAPSIZE