• Subject: Re: Field contents by reference?
  • From: Martin Rowe <martin@xxxxxxxxxx>
  • Date: Tue, 7 Aug 2001 15:35:38 +0100
  • Organization: dbg400

On Tuesday 07 August 2001 2:54 pm, Fran Denoncourt wrote:
> Martin,
> The more I think about it, this may not be the solution. I took a quick
> look at your article. But, what I need to do is get the contents (actual
> data from XXX) from the field referenced by the fields file (XXXFIELDS). I
> know the field and file names and would like to use this information to
> retrieve the actual field contents and test that. If I should spend more
> time looking at your article let me know.
> Thanks again,
> Fran

CRTCSVDTA does just this. There is a companion tool called EDTFLDMAP that 
lets you specify formatting rules for a particular file. This rules file 
(like your XXXFIELDS) is read in conjunction with the input file (like your 
XXX data) and for each field (generally holding date values) in the rules 
file I extract the matching value from the current record in input data file. 
Once I've processed all the fields mentioned in the rules file I move on to 
the next record in the input file. I actually process all field from the 
input file, but only do special formatting for those mentioned in the rules 
file.

Feel free to take this off list if you think it's getting too detailed for 
others to be interested, but at least it's on topic as my routines are all 
RPG(LE) ;-)  

Regards, Martin
-- 
martin@dbg400.net / jamaro@firstlinux.net
http://www.dbg400.net  DBG/400 - DataBase Generation utilities 
Open Source test environment tools for the AS/400 / iSeries and 
miscellaneous database & spooled file management commands.
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.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.