I've had pretty good success with the below and I use a lot of monitors that use the same logic as the pssr code below.
Mainline code has it's own pssr, local procedures (that may error out) will have their own pssr.
They will populate a global error message then exit proc or program.
When program is exited, if global error message is populated,
1. Send the user a simple message "Error 1, contact IT."
2. Send an email or break message to programmer. "Error in xxx pgm, check the log file"
3. Write the error message to the log file. "in depth message & msgid here, maybe some variable values too"
Mainline has an exit, return, and pssr subroutine, always.
It's not 'exactly' like below, but you'll get the idea.
This is 'somewhat' patterned after pgms I saw form easy400 site.
John B.
The pssr in the mainline and the pssr in the local proc are just a little bit different.
This mailing list archive is Copyright 1997-2025 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact
[javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.