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



If you use PREFIX on the F-spec for the file(s) in question the non-qualified fields will not be generated and the compiler will error you if you try to use them. Would that help?


On 2013-08-08, at 1:15 PM, "p.caroti@xxxxxxxx" <p.caroti@xxxxxxxx> wrote:


Hi

i'm tryng to use data structure, to store informations about
WRITE/UPDATE/CHAIN both for Data Base files and Display files; example
for DSPF i code Data structure for every record format like this:
D S01Ds Ds LikeRec(S01:*All) Inz Sfl
D C01Ds Ds LikeRec(C01:*All) Inz SflCtl


then i when i write or update the records S01 or C01 i use :
write S01 S01Ds;
or
ExFmt C01 C01Ds;

but with this tecnique, i have the problem that i have to remember to
prefix all my file's fields as, if I use "customer_code" instead of
"S01Ds.customer_code" the program is generated with success, but the
data is not (in this example) displayed in the screen. Is there any
tecnique to avoid this or i'm wrong in something ? do you use this
tecnique ?

Thanks in advance for you suggestion.


--
This is the RPG programming on the IBM i (AS/400 and 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.


Jon Paris

www.partner400.com
www.SystemiDeveloper.com





As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.