Thanks a lot for your help, Brian.
Read MasterFile
Dowhile not %eof(MasterFile)
GetDetailFileRecord ( Library : RefID )
Read MasterFile
EndDo
Procedure GetDetailFileRecord :
Establish which procedure to call depending on the library received
SetUp Library list
Call FileDetailProcedure ( RefId )
FileDetailProcedure1, 2, 3, etc is copied as many times as there are libraries, in my case 8. (ie 8 identical modules < ! >) so that I could have 8 F specs.
The procedure opens the detail file if not already open and reads the record.
That was my idea.
However,
If FileDetailProcedure1 is called, it opens detailfile1 and returns leaving it open.
If FileDetailProcedure2 is then called, can I now open detailfile2 or will a IF %OPEN(detailFile) return *ON even if detailfile1 is no longer in the library list?
-----Message d'origine-----
De : rpg400-l-bounces@xxxxxxxxxxxx [mailto:rpg400-l-bounces@xxxxxxxxxxxx] De la part de BMay@xxxxxxxxx
Envoyé : mardi 13 janvier 2009 19:17
À : rpg400-l@xxxxxxxxxxxx
Objet : RE: Problem with duplicated file names
Can you psuedo code your idea for me. I got lost somewhere in the middle.
:)
Brian May
Project Lead
Management Information Systems
Garan, Incorporated
Starkville, Mississippi
Young i Professionals
http://www.youngiprofessionals.com
--
This is the RPG programming on the IBM i / System i (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.