Write record value onto DSPF using OVRDBF

425 pts.
Tags:
CL/400
DSPF
OVRDBF
In a single CL/400 program, is it possible to declare physical file File1, then read a record and later writing the record value onto the DSPF using OVRDBF with in a same CLP?

Software/Hardware used:
Iseries
ASKED: September 14, 2009  6:01 AM
UPDATED: August 26, 2013  3:25 PM

Answer Wiki

Thanks. We'll let you know when a new response is added.

You do not need the OVRDBF.
You use two DCLF statements and RCVF for the PF and SNDF for the DSPF

*************************************************************************
CL supports up to 5 files. Use OPNID to reference additional files.

///////

It’ll work if you are on V5R4M0 or above.
Wilson

Sorry, mi mistake. More than one file in CL is allowed from V5R3 and above.
Wilson

*************************************************************************
The recent allowance of up to five DCLFs in a single CL program has made this fairly easy. However, there are various ways of accomplishing a similar result even in VRMs going back to V2R3. For example, the QLGSORT API can be used to retrieve record strings into CL variables, and a DSPF can then be the target of the single DCLF. Or the database file can be on the DCLF, and the DSPF can be replaced by a *PNLGRP — use UIM APIs to write the output. Or, in ILE CL, use DSM APIs to avoid both DSPF and *PNLGRP requirements.

Tom

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
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

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

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

REGISTER or login:

Forgot Password?
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

Thanks! We'll email you when relevant content is added and updated.

Following