I am getting the below error:
USER COMPLETION CODE=4087 REASON=00000003
Additional error msgs:
+CEE0374C CONDITION=IBM0181S TOKEN=00030085 59C9C2D4 00000002
WHILE RUNNING PROGRAM UNKNOWN
+CEE0374C CONDITION=CEE3204S TOKEN=00030C84 59C3C5C5 00000000
WHILE RUNNING PROGRAM IBMRLIB1
Files are declared as:
File1 FILE RECORD INPUT ENV (V TOTAL SCALARVARYING);
File2 FILE RECORD UPDATE ENV(FB RECSIZE(1103));
The PL/1 program is reading two files. The error is occurring when reading file2 on the 301th record. When file2 has 300 records or less, program runs fine, regardless of number of records read in file1. Program is executing READ command then REWRITE after some data manipulation. I'm thinking it's a memory problem and have tried setting the job parm REGION=0M.
The jobstep is using PLIXG proc to run the PL/1 program.
Joined: 06 Jun 2008 Posts: 8280 Location: Dubuque, Iowa, USA
I'm thinking it's a memory problem and have tried setting the job parm REGION=0M.
Just out of curiosity, why are you "thinking" instead of researching? You can know by using the manuals rather than "thinking" and guessing about what the problem is. For example, part of the error messages you posted is:
ONCODE=oncode-value The ENDFILE condition was raised (FILE= or ONFILE= file-name).
The end of an input file was detected. The ONCODE associated with this message is 70.
Include an ON-unit for the ENDFILE condition for each input file in the program to handle the end-of-file processing.
The ERROR condition is raised.
Symbolic Feedback Code:
So I'm "thinking" it's not a memory problem at all, that setting REGION=0M will have no impact upon your error, and that perhaps you ought to be looking at handling the input files in your code better. It took less than a minute to find that via Google on "ibm0181s", by the way.