SCRAPLOG diagnostic records

By analyzing SCRAPLOG records, you can sometimes determine that a logical terminal (LTERM) to which messages are to be requeued does not exist. In this case, you can fix the problem and run the job again so that the messages are requeued.

As part of diagnosing problems with the Queue Control Facility/Message Requeuer, you use SCRAPLOG records. The SCRAPLOG record consists of a X'100' or X'140' MRQ prefix that is mapped by DFSMRQPF, followed by the actual message that is being inserted. The message is either a 4002 record (a message from a DUMPQ or SNAPQ checkpoint) or a 01 (input) or 03 (output) message record. IMS™ messages are mapped by the QLOGMSGP macro.