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



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.

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.