TRAPRESTORE


8.0.4, ANSI

 

The TRAPRESTORE instruction (which may be abbreviated as TRAPREST) clears and then restores all trapped events from a prior TRAPSAVE instruction. The instruction uses the following format:

 

 

[label]

TRAPRESTORE

{traps}

 

Where:

label

Optional. A Program Execution Label.

traps

Required. A previously defined Character String Variable containing the previously saved trap information.

Flags Affected: none

Note the following:

  1. All traps are first cleared before performing the restore operation.

  2. Only the traps that were set when the previous TRAPSAVE instruction was performed are set at the conclusion of this instruction.

  3. An E06 error is generated if {traps} was not generated from a TRAPSAVE instruction, was modified, or was not from the same program as currently executing.

 

 

See Also: TRAPSAVE, TRAP, TRAPCLR, Exceptions, Program Control Instructions

 



PL/B Language Reference TRAPCLR TRAPSAVE