Handling an ExecCmd Exception Q. How can one handle an exception thrown by an ExecCmd within an RPGLILE program? A. When a command run via QCMDEXC fails, an *ESCAPE message is sent to your program and logged to the job log. You can use the RPG monitor block method, which is the equivalent of CL’s MONMSG command, to catch the error and see what the problem is. Scott Klement wrote an article covering the topic well. It’s at ...

REGISTER NOW TO ACCESS THIS ARTICLE

All registered users get access to premium content on iPro Developer for free.

Already registered? here.