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



 Have you considered using the PREFIX keyword on the second file?
 
---------------------------------
Booth Martin
http://www.martinvt.com
---------------------------------
-------Original Message-------
 
From: RPG programming on the AS400 / iSeries
Date: 03/23/04 13:26:24
To: rpg400-l@xxxxxxxxxxxx
Subject: opening 2 files, same name, different libraries in an RPG pgrogram
 
I've got a program that needs to open 2 files at the same time, same name,
different libraries.
 
I'd like touse an override before calling the program to point to the
proper files in the proper librarys, so I really only need to be able to
describe the same file structure twice in a program. I'd prefer not to
have to create a logical over the file with the same keys just to get a
program to compile.
 
I thought maybe I could use extfile() keyword, but it appears that it
doesn't use this to get the file definition, and is only used to name the
file to the 'outside world'
 
other than creating a dummy logical, (or an empty copy of the original),
how can I do this with minimal muss and fuss?
 
thanks,
 
Rick

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.