IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Job Abended with S001-05


IBM Mainframe Forums -> ABENDS & Debugging
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Binaya

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Wed Jan 30, 2008 11:52 am
Reply with quote

Hello Everybody,

While executing a program my job abended with S001-5,
The message is "FOR QSAM, A GET WAS ISSUED AFTER END-OF-FILE."

Please let me know.

Regards,
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 30, 2008 12:23 pm
Reply with quote

Quote:
...A GET WAS ISSUED AFTER END-OF-FILE...


what' s wrong in understanding the message meaning ??
Back to top
View user's profile Send private message
Binaya

New User


Joined: 03 Jul 2007
Posts: 77
Location: Hyderabad

PostPosted: Wed Jan 30, 2008 12:31 pm
Reply with quote

For your info there is no problem with the logic in my program as its running in Production successfully. I am just executing it in test region to see the output. So How can I get this error??

Regsrda,
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 30, 2008 12:37 pm
Reply with quote

Do You trust more the MVS diagnostics or Your assumption about the program logic ???
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Jan 30, 2008 12:42 pm
Reply with quote

if the reason code had been 2 the cause could have been an EOV processing error at close time
( so the fault could be somewhere else )

but unfortunately You got a reason code 5... meditate please meditate
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Wed Jan 30, 2008 9:09 pm
Reply with quote

Hello,

Quote:
For your info there is no problem with the logic in my program
Yes, there is. As the system told you, your code issued another read after end-of-file was encountered. This would be a problem with the logic.

What sometimes happens is that there are problems with code that only occur when the input data is not exactly as expected. This is always a design flaw in the code. If the data is not as expected the code should detect this and react appropriately.

It may be that the "test data" is not complete, causing the code to fall down (if so, the code should be fixed).
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> ABENDS & Debugging

 


Similar Topics
Topic Forum Replies
No new posts Reorg abended with REASON=X'00E40347' DB2 2
No new posts Forcing a step to run (even if abended) JCL & VSAM 8
No new posts An write operation error - ABENDED S0... COBOL Programming 3
No new posts COBOL program error ENDED AT SVSCJES2... COBOL Programming 1
No new posts ABENDED S000 U0922 DB2 3
Search our Forums:

Back to Top