× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



When you compile a program with embedded SQL with DBGVIEW(*SOURCE) (the only 
other option is *NONE), the source does stay with the object.

Matt

-----Original Message-----
From: Bob Cozzi [mailto:cozzi@xxxxxxxxx]
Sent: Friday, July 16, 2004 12:46 AM
To: 'RPG programming on the AS400 / iSeries'
Subject: RE: Get source from object?


Right DBGVIEW(*SOURCE) puts a link to the original source member in the
object; it does not copy the source into the object. DBGVIEW(*LIST) will do
that, albeit the expanded compiler listing version of the source.


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx]
On Behalf Of Scott Klement
Sent: Thursday, July 15, 2004 2:45 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Get source from object?


Hi Dan,

> Assuming RPG-IV, if you compiled with DBGVIEW(*SOURCE) or DBGVIEW(*ALL)
> then, yes, it's in the object.

Forgive me, but do you mean DBGVIEW(*LIST)?  I thought DBGVIEW(*SOURCE)
meant that the debugger referred back to the actual source member?

The following text appears in the help for the CRTBNDRPG command:

 *SOURCE
     Generates the source view for debugging the compiled program object
     This view is not available if the root source member is a DDM file.
     Also, if changes are made to any source members after the compile
     and before attempting to debug the program, the views for those
     source members may not be usable.

It doesn't directly say that *SOURCE refers to the actual source member,
but it does imply that if you change the source member, what you see in
the debugger may not be relevant -- so to me that implies that it's using
the actual source.

Obviously, if that source were deleted, DBGVIEW(*SOURCE) wouldn't help --
so I'm guessing that you actually meant DBGVIEW(*LIST) -- or that I'm just
totally wrong.

--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
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/rpg400-l.



--
This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list
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/rpg400-l.



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:

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

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.