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



Eventually you may need to specify OVRSCOPE *JOB instead of *ACTGRPDFN,
Regards

Domenico



-----Messaggio originale-----
Da: COBOL400-L [mailto:cobol400-l-bounces@xxxxxxxxxxxx] Per conto di Winchester Terry
Inviato: venerdì 14 novembre 2014 16:14
A: 'COBOL Programming on the IBM i (AS/400 and iSeries)'
Oggetto: Re: [COBOL400-L] Dynamic File Selection


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

Terry


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

Suggestions?

Rich
--
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,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take
a moment to review the archives at
http://archive.midrange.com/cobol400-l.


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.

--
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,
visit: http://lists.midrange.com/mailman/listinfo/cobol400-l
or email: COBOL400-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at http://archive.midrange.com/cobol400-l.

This message and any attachments (the "message") are confidential, intended solely for the addressees, and may contain legally privileged information. Any unauthorised use or dissemination is prohibited.
E-mails are susceptible to alteration. Fiditalia SpA shall not be liable for the message if altered, changed or falsified.

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.