Patch examples

The following example shows a message ID patch:
PATCH   -
       Name(DUMPMSG1) -
       OldData('****') -
       NewData('nnnn')
This patch causes XRC to dump its storage on a given message ID. For example, if you want a dump when XRC displays message ANTI1021I, code nnnn as 1021. After XRC dumps the storage, the message ID number resets to **** to avoid repeated dumps.
Three message ID patches are available:
The following example shows a return code patch:
PATCH   -
       Name(DUMPRC1) -
       OldData(X'0000') -
       NewData(X'nnnn')
This patch causes XRC to dump its storage on a given return code. For example, if you want a dump when XRC issues return code 607, code X'nnnn' as X'025F' (the hexadecimal equivalent of 607). After XRC dumps the storage, the return code number resets to X'0000' to avoid recursive dumps.
Note: There are six available return code patches. Use the following DUMPRCnM patch points if you want to perform a dump when the designated return code appears in a message.
  • DUMPRC1
  • DUMPRC2
  • DUMPRC3
  • DUMPRC1M
  • DUMPRC2M
  • DUMPRC3M
This patch suppresses the creation of a logrec record when an XRC physical session terminates normally.
PATCH   -
       Name(S5007P1) -
       OldData(X'00') -
       NewData(X'01')