Error in Data fetching

1,420 pts.
Tags:
AS400 - Job Details for interactive Program
Hi all, My requirement is i have a CL program which is calling RPG Program R1, which writes data to an Output file PF1. Now i need to Change the RPG program R1 in such way that it should write data to PF0 instead of PF1, and i need to create another RPG program R2 which reads data from PF0 and writes to PF1. Now my CL program need to call both R1 and R2 so that data get papulated to PF1 through PF0. I did every thing so that the data is getting papulated to PF0 and PF1 when i use different CL programs for each of RPG programs. But when ever i use same CL and CALL R1 then CALL R2, the data is papulating till PF0 but not PF1. How to proceed in this case? The error i am getting is CPF4326 for L1( L1 is logical file of PF1). Error message: error message CPF4326 appeared during OPEN for the file L1. Please help me fix the issue .. Thanks!

Software/Hardware used:
AS400, RPG 400,CLLE,
ASKED: September 10, 2013  4:19 PM
UPDATED: September 10, 2013  5:17 PM

Answer Wiki

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

Your error message is about commitment control.

First question is did you intentionally want to use Commitment Control?

Is Program R2 trying to read a LF over a PF that was created in R1? Are the records committed yet?

Discuss This Question: 1  Reply

 
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