View previous topic :: View next topic
|
Author |
Message |
Binaya
New User
Joined: 03 Jul 2007 Posts: 77 Location: Hyderabad
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Quote: |
...A GET WAS ISSUED AFTER END-OF-FILE... |
what' s wrong in understanding the message meaning ?? |
|
Back to top |
|
|
Binaya
New User
Joined: 03 Jul 2007 Posts: 77 Location: Hyderabad
|
|
|
|
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 |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
Do You trust more the MVS diagnostics or Your assumption about the program logic ??? |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10872 Location: italy
|
|
|
|
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 |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
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 |
|
|
|