By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your response...

Discuss This Question: 15 &nbspReplies

There was an error processing your information. Please try again later.

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Get rid of the OPNQRYF. I have no interest in testing how it interferes with the RCVF, but trying to open a query file against the same file you have already opened and read a record from seems like a very bad idea. There is no point in doing it. -- Tom

Now, if your RCVF loop comes after the OPNQRYF, what do you get? It's possible to do it by using RCVF after OPNQRYF. But usually a CL program would simply use RCVF in a loop without OPNQRYF. You'd just have an IF command inside the loop to test for the record you want to display. -- Tom

Typically the OpnQryF is used to control downsteam programs.
Trying to affect a program that has an file already open ?? doesn't seem possible.
As far as your code goes .. if it were to work, you must dlt the override and close the file every loop.
I'm a little off today on the """" quotes in the query select.

it throws CPF4174 received by OVRRIDE2 at 209 error.
Of course it does. That's what should happen for that program. You try to apply an override after you already opened the file.
Previous comments have said that you should not have OPNQRYF after you already ran RCVF. The same is true for OVRDBF. When RCVF runs, it causes the file to be opened automatically. Because the file is already open, it is too late to run OVRDBF.
There are other errors. For example, the DLTOVR immediately follows GOTO, and it doesn't have a label. There is no way it can ever run.
Don't do OVRDBF or OPNQRYF after RCVF for the same file.
Tom

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy

Processing your reply...

Ask a Question

Free Guide: Managing storage for virtual environments

Complete a brief survey to get a complimentary 70-page whitepaper featuring the best methods and solutions for your virtual environment, as well as hypervisor-specific management advice from TechTarget experts. Don’t miss out on this exclusive content!

Share this item with your network:

To follow this tag...

By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States.
Privacy