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