You could make a call to QCMDEXC and do the OVRDBF *before*
you open the specific file...


-----Original Message-----
From: COBOL400-L [mailto:cobol400-l-bounces@xxxxxxxxxxxx] On
Behalf Of Rich Loeber
Sent: Friday, November 14, 2014 9:55 AM
To: COBOL Programming on the iSeries/AS400
Subject: [COBOL400-L] Dynamic File Selection

I have an interesting problem. From within my CBLLE
program, I have a
single file defined, but the actual file being processed may vary
depending on how a user responds to a query. For example,
I have FILEA,
FILEB and FILEC all identical but with different content.
I want to be
able to switch between them from a single file definition
for FILEX. Is
there an equivalent to OVRDBF that I can call in the CBLLE
program before
I open the file that will make the switch?

The problem is that I cannot go from CLLE to CBLLE in this
case, which is
how this would normally be handled.


This is the COBOL Programming on the IBM i (AS/400 and
iSeries) (COBOL400-L) mailing list
To post a message email: COBOL400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
or email: COBOL400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives

Confidentiality Notice: The preceding e-mail message (including any attachments) contains information that may be confidential, protected by applicable legal privileges, or constitute non-public information. It is intended to be conveyed only to the designated recipient(s). If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete it from your system. Use, dissemination, distribution or reproduction of this message by unintended recipients is not authorized and may be unlawful.

As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2022 by 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.