z/OS DFSMShsm Diagnosis
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


ABEND, LOG, OFF, and SNAP: Specifying What DFSMShsm should do if an error occurs

z/OS DFSMShsm Diagnosis
GC52-1387-00

Explanation: ABEND, LOG, OFF, and SNAP are mutually exclusive, optional parameters specifying what DFSMShsm should do and how many times it should do it when the specified error occurs in the specified module.

ABEND specifies that DFSMShsm abnormally ends the task when the specified error condition occurs in the specified module. DFSMShsm abnormally ends the task by issuing an ABEND macro. DFSMShsm almost always tries to restart the task that abnormally ended. During the abnormal end, DFSMShsm produces an abnormal end dump.

ALWAYS, NEVER, and ONCE are mutually exclusive, optional subparameters of the ABEND parameter, specifying how many times DFSMShsm abnormally ends the task when the specified error condition occurs in the specified module.
  • ALWAYS specifies that DFSMShsm abnormally end the task every time the specified error condition occurs in the specified module.
  • NEVER specifies that DFSMShsm should never abnormally end the task when the specified error condition occurs in the specified module.
  • ONCE specifies that DFSMShsm should abnormally end the task the first time the specified error condition occurs in the specified module.

LOG specifies that you want DFSMShsm to write an entry in the DFSMShsm log when the specified error condition occurs in the specified module. TRAP LOG avoids DFSMShsm shutdown because the errors do not increment the counter for the maximum number of occurrences. That is, TRAP LOG logs the errors but does not count them.

OFF specifies that you want DFSMShsm to remove a trap that you specified with a previous TRAP command. For example, you specified TRAP ARCGODS 13 SNAP(ONCE), causing DFSMShsm to produce a snap dump the first time error condition 13 occurs in module ARCGODS. To prevent DFSMShsm from further checking for that error condition, you specify TRAP ARCGODS 13 OFF. This command returns DFSMShsm to the process level that IBM® previously specified for just SNAP. See ARCGODS in Diagnosing from return codes and reason codes.

SNAP specifies that you want DFSMShsm to produce a snap dump when the specified error condition occurs in the specified module. DFSMShsm produces a snap dump by issuing a SNAP macro. If you specify the SYS1DUMP parameter of the SETSYS command, the dump is written to a system dump data set. When a TRAP occurs, DFSMShsm produces a snap dump directed to the SYSOUT class specified in the SETSYS SYSOUT command. DFSMShsm continues processing after producing a snap dump.

ALWAYS | NEVER | ONCE are mutually exclusive, optional subparameters of the SNAP parameter, specifying how many times DFSMShsm produces a snap dump when the specified error condition occurs in the specified module.
  • ALWAYS specifies that DFSMShsm produce a snap dump every time the specified error condition occurs in the specified module.
  • NEVER specifies that DFSMShsm never produce a snap dump when the specified error condition occurs in the specified module.
  • ONCE specifies that DFSMShsm produce a snap dump the first time the specified error condition occurs in the specified module.

Abbreviations: None.

Defaults: If you do not specify ABEND, LOG, OFF, or SNAP, the default is SNAP. If you do not specify ALWAYS, NEVER, or ONCE, the default is ONCE.

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014