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



On Wed, 28 Aug 2002, Jim Langston wrote:

> Easiest way: Don't use prefix.  Then both files will have the same field 
>names, correct?  Read from FileA and FileB's field will have the same contents.
>
> C           DoW   NOT %Eof(FileA)
> C           Read  FileA
> C           Write FileB
> C           EndDo
>

Perhaps I was trying to make it too hard!  I'm not actually reading from
FileB, so why did I need to rename fields?

Real program uses File1 as primary, read from FileA, then chain to File2
then File3 (2 and 3 are identical fields, different data and need to be
PREFIXed or renamed in I spec to get the right data) then SETLL on FileB
to make sure record doesn't exist before WRITE.

I'll try both of the answers tomorrow, mainly for knowledge.  I don't get
to use RPG IV much (we're on V5R1 but the software is all RPGIII from a
vendor).  I'm working on a conversion program and just couldn't visualize
it in RPGIII.

Thanks for the ideas!



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.