Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

While processing a file i got file status 46

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
pattabhiram_c

New User


Joined: 17 Apr 2007
Posts: 3
Location: Hyderabad

PostPosted: Wed Jun 13, 2007 9:46 am    Post subject: While processing a file i got file status 46
Reply with quote

Hi,

While processing a file i got file status 46. Can i know the process to solve this File status.

Thanks and Regards
Back to top
View user's profile Send private message

Raphael Bacay

New User


Joined: 04 May 2007
Posts: 58
Location: Manila, Philippines

PostPosted: Wed Jun 13, 2007 11:18 am    Post subject:
Reply with quote

I looked up file status 46 and came up with the following:

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.


You better take a look at your READs. It might not be getting the data from the input file. What's your READ command and the preceeding and succeding commands like?


Regards.
Back to top
View user's profile Send private message
miggranados

New User


Joined: 12 Jun 2007
Posts: 2
Location: BRASIL

PostPosted: Thu Jun 14, 2007 7:36 pm    Post subject: Re: While processing a file i got file status 46
Reply with quote

this verifies if command OPEN being executed before the READ.
Back to top
View user's profile Send private message
Vineet

New User


Joined: 14 Sep 2005
Posts: 18

PostPosted: Fri Jun 15, 2007 5:30 pm    Post subject:
Reply with quote

This Error = 46 generally comes Once last Record being Red from File & again it encounters the 'Read Verb' for the same file. Verify all Read statements in your Pgm. & Correct. One Alternate Sol. (Suggestion is to Fix, If Not Able to Do so then Go for Alternate Sol.). Check for Status-Code of File, Once Status Code = 10. Put 'Stop Run'.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Fetching data from BAI File arunsoods JCL & VSAM 1 Wed Jul 19, 2017 4:28 pm
No new posts Write out NODUPS but just from one file Jay Villaverde DFSORT/ICETOOL 8 Fri Jul 14, 2017 12:44 am
No new posts How to add header with Date(YYMMDD) i... Rajan Moorthy DFSORT/ICETOOL 2 Thu Jul 06, 2017 11:44 pm
No new posts How to generate a new unique Input fi... for1ranjith CLIST & REXX 11 Sat Jul 01, 2017 12:09 pm
No new posts Writing a file using online program grvtomar PL/I & Assembler 3 Fri Jun 30, 2017 1:06 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us