Examples

You issue the following commands:

  1. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),ON(dsn1) 
    dsn1 is eligible to be checked by the trap.
  2. OPEN dsn1
    dsn1 is now checked for data corruption by the data trap.
  3. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),ON(dsn2) 
    dsn2 is eligible to be checked when it is opened. The list will only show dsn2; however, dsn1 is still checked by the trap until it is closed.

Here is a slightly more complex example:

  1. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),ON(dsn1) 
    dsn1 is eligible to be checked by the trap.
  2. OPEN dsn1
    dsn1 is now checked for data corruption by the data trap.
  3. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),ON(dsn2) 
    dsn2 is eligible for the trap. The list will only show dsn2; however, dsn1 is still being checked by the trap because it has not been closed.
  4. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),OFF
    dsn2 is no longer eligible for the data trap, and the data trap is disabled for dsn1.
  5. V SMS,MONDS(IGWVSAM.BASE.DATA.TRAP),ON(dsn2,dsn3)
    dsn2 and dsn3 are eligible for the data trap. The list will show dsn2,dsn3; however, they are not checked by the trap until they have been opened. Because the trap is turned back on and dsn1 has not been closed, dsn1 is again checked by the data trap.
  6. OPEN dsn3
    dsn3 is now checked for data corruption by the data trap, as is dsn1. dsn2 is still not checked because it has not been opened.