Using SRCDBG with an SQLRPGLE module
5 pts.
0
Q:
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: Aug 13 2009  6:32 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
8025 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
>> "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:


CRTSQLRPGI TOSRCFILE(mylib/myfile) COMPILEOPT('DBGVIEW(*SOURCE)')


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.:


C/Exec SQL Set Option CompileOpt('DBGVIEW(*SOURCE')
C/End-Exec


Tom
Last Answered: Oct 11 2009  11:53 AM GMT by TomLiotta   8025 pts.
Latest Contributors: Littlepd   500 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Splat   1070 pts.  |   Aug 14 2009  4:18PM GMT

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

 
0