|
Hi,your
to make it easier (and not to forget it the next time you'll recompile
program), you may add it in an SET OPTION statement at the beginning ofyour
C-Specs.Im
If there is already a set option statement in your program, just add the
compile option:
C/Exec SQL Set Option CompileOpt('DBGVIEW(*SOURCE')
C/End-Exec
But to use CompileOpt you need at least release V5R3 (or even V5R4).
Mit freundlichen Gr=FC=DFen / Best regards
Birgitta Hauser
"Shoot for the moon, even if you miss, you'll land among the stars." (Les
Brown)
"If you think education is expensive, try ignorance." (Derek Bok)
"What is worse than training your staff and losing them? Not training them
and keeping them!"
-----Urspr=FCngliche Nachricht-----
Von: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
Auftrag von Barbara Morrislist
Gesendet: Thursday, 17. September 2009 21:57
An: rpg400-l@xxxxxxxxxxxx
Betreff: Re: CRTSQLRPGI errors out with DBGVIEW(*SOURCE) but passes with
DBGVIEW(*NONE)
(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)')
-- =
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxxlist
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.
-- =
This is the RPG programming on the IBM i / System i (RPG400-L) mailing
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/r
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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.