(From: "Jszarlik" <jszarlik@xxxxxx>)

> I found calling command CRTSQLRPGI and changed DBGVIEW(*SOURCE) for
> DBGVIEW(*NONE) and the all is OK.
> But I have to debug this program to find error.
>
> How to compile with DBGVIEW(*SOURCE)?
>

Jarek, you could try compiling this way:

CRTSQLRPGI COMPILEOPT('DBGVIEW(*SOURCE)')

That would let you debug from the intermediate source file that the SQL precompiler generates. DBGVIEW(*SOURCE) for the CRTBNDRPG step of the compile produces the smallest possible debug information.

By default, the intermediate source file is placed in QTEMP. If you want to debug the program from another job, you should also specify the TOSRCFILE parameter for CRTSQLRPGI so that the intermediate file goes into a permanent library.

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

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

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.