Hi all,
I am reading data from a file PF1 using LF1 sequencially, and writing to other file PF2 using using LF2 using RPG Program R1. when i run it using CALL R1, working absolutely fine. But when use SBMJOB to submit it as batch job, it is going to MSGW. the error is: " CPF4326 occured for the file LF2 while trying to Open ( C D S F) ".
Even i changed the commitment control using STRCMTCTL *CHG, still same error.
Again i tried with a CL program C1, which have a call statement CALL R1, and this time i submitted CL program C1. Still i am getting the same error.
Please suggest me fix this error.
I am reading data from a file PF1 using LF1 sequencially, and writing to other file PF2 using using LF2 using RPG Program R1. when i run it using CALL R1, working absolutely fine. But when use SBMJOB to submit it as batch job, it is going to MSGW. the error is: " CPF4326 occured for the file LF2 while trying to Open ( C D S F) ".
Even i changed the commitment control using STRCMTCTL *CHG, still same error.
Again i tried with a CL program C1, which have a call statement CALL R1, and this time i submitted CL program C1. Still i am getting the same error.
Please suggest me fix this error.
Comment