View previous topic :: View next topic
|
Author |
Message |
Tharak
New User
Joined: 22 May 2006 Posts: 2
|
|
|
|
Please help me fix COBOL File status code 46 |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Hi Tharak,
Look at your program again with the reason for File Status 46:
A sequential READ statement was attempted on a file open in the input or I-O mode and no valid next record had been established because:
1. The preceding READ statement was unsuccessful but did not cause an at end condition
2. The preceding READ statement caused an at end condition.
Cheers, Twissi. |
|
Back to top |
|
|
vijayamadhuri
Active User
Joined: 06 Apr 2005 Posts: 180
|
|
|
|
There is something wrong with u r i/p file.Check u r job to see if the lrec u have provided there and in the pgm are the same. |
|
Back to top |
|
|
Tharak
New User
Joined: 22 May 2006 Posts: 2
|
|
|
|
Hi Twissi,
Thanks for your quick reply....It worked....
Cheers
Tharak |
|
Back to top |
|
|
twissi
Active User
Joined: 01 Aug 2005 Posts: 105 Location: Somerset, NJ
|
|
|
|
Tharak,
No problem, I'm glad that it worked.
Vijayamadhuri, just for your information, if there's a mismatch between the LRECL in the program and the JCL, the file status will be 90.
Cheers, Twissi. |
|
Back to top |
|
|
rock23
New User
Joined: 19 Sep 2010 Posts: 1 Location: coimbatore
|
|
|
|
A sequential READ statement was attempted on a file open in the input
or I-O mode and no valid next record had been established because:
Quote: |
° The preceding READ statement was unsuccessful but did not cause an
at-end condition.
° The preceding READ statement caused an at-end condition. |
|
|
Back to top |
|
|
|