TRAP command: Requesting a dump when a specified error occurs

The TRAP command is to be used only for maintenance purposes and is explained in the z/OS DFSMShsm Diagnosis.