Problem solve Get help with specific problems with your technologies, process and projects.

Debugging an ILE program when it calls an OPM program

The ILE debug is started by STRDBG, the same command used to debug traditional OPM programs (RPG III). When you...

are debugging an ILE program and it calls an OPM program, using F22 to "jump in" the called program or adding the called program to the list of debugged programs (F14) will not work. To use the debugger, you have two choices:

1. Convert the called program to ILE and recompile with the appropriate debug view. That may not be possible to do, for your company may prefer some programs to be kept in RPG III. Also, some programs may need some reworking when converting from RPG 3 to RPG IV (arrays inside data structure, reserved words may cause such problems).

2. Recompile the OPM program with OPTION(*LSTDBG) and start (STRDBG) or change (CHGDBG) the debug with option OPMSRC(*YES). This enables you to debug OPM programs within the ILE debugger the same way, as if they were ILE, without having to convert or modify the source or change the language of the object.

Please note that other (non-IBM) debuggers will enable you to debug a mixture of OPM and ILE without the need for recompiling.

---------------------------------------


About the author: Pascal Jacquemain is an analyst/programmer at Gulliver Travel in London. In addition, he has worked as an AS/400 instructor.


This was last published in February 2001

Dig Deeper on RPG iSeries programming

Start the conversation

Send me notifications when other members comment.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Please create a username to comment.

-ADS BY GOOGLE

SearchDataCenter

Close