Debugging with messages that have offset information
Some IWZ messages include offset information that you can use to identify the particular line of a program that failed.
To use this information:
Compile the program with the LIST option. This step produces an assembler listing file, which has a suffix of .wlist.
When you get a message that includes offset information, find the offset information for the COBOL program. In the following example, the program is IWZ903, and the corresponding hexadecimal offset is 0x14c (highlighted in bold):
IWZ903S The system detected a data exception.
Message routine called from offset 0x38 of routine iwzWriteERRmsg.
iwzWriteERRmsg called from offset 0xa0 of routine _iwzcBCD_ADD_Pckd.
_iwzcBCD_ADD_Pckd called from offset 0x14c of routine IWZ903.
IWZ901S Program exits due to severe or critical error.
Look in the .wlist file for the hexadecimal offset. To the left of the hexadecimal offset is the COBOL statement number. In the following example, the statement number corresponding to 0x14c is 35 (highlighted in bold):