5 pts.
 Using SRCDBG with an SQLRPGLE module
I'm trying to debug a RPGLE module created with CRTSQLRPGI. The STRDBG program returns an error message stating the program "cannot be accessed". There is no DBGVIEW option on the CRTSQLRPGI command, so even if I get the debug to work. will I see any source data? Thanks.

Software/Hardware used:
AS400
ASKED: August 13, 2009  6:32 PM
UPDATED: October 11, 2009  11:53 AM

Answer Wiki:
>> "There is no DBGVIEW option on the CRTSQLRPGI command," Um, there is on mine. And the v5r4 Information Center lists it as one of the parms for that command. =============================================================== The DBGVIEW() parameter has been around for quite a while. I can see it on V5R3, but don't know how much earlier than that. I suspect all the way back to the initial release of the command. Perhaps you need to press <F10=Additional parameters> to see what all exists. But the preprocessor would have generated the source into QTEMP for the compile. The source is obviously no longer there. Try: <pre> CRTSQLRPGI TOSRCFILE(mylib/myfile) COMPILEOPT('DBGVIEW(*SOURCE)') </pre> Have the preprocessor place the source into a file of your choosing. And consider placing various options directly in the source, so you don't have to remember the next time you compile. E.g.: <pre> C/Exec SQL Set Option CompileOpt('DBGVIEW(*SOURCE') C/End-Exec </pre> Tom
Last Wiki Answer Submitted:  October 11, 2009  11:53 am  by  Littlepd   1,130 pts.
All Answer Wiki Contributors:  Littlepd   1,130 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

DBGVIEW on the CRTSQLRPGI command is either *NONE or *SOURCE.

 5,670 pts.