When it breaks: errors and debugging
How to read an RPG error, how to get into the debugger on a job that is not yours, and how to stop a program dying silently at three in the morning.
How to read an RPG error, how to get into the debugger on a job that is not yours, and how to stop a program dying silently at three in the morning.
Message queues, QSYSMSG, automatic replies and the job log: why it is sometimes missing, and how to find the first error in it with SQL.
Eighty-two COALESCEs are not the answer. What is left in the variables when a FETCH meets a NULL, and why ALWNULL has nothing to do with it.
The file will not update and the batch is waiting: two commands find the job responsible.