View previous topic :: View next topic |
Author |
Message |
kumarsambhu Beginner
Joined: 04 Dec 2003 Posts: 2 Topics: 1
|
Posted: Thu Dec 04, 2003 9:31 am Post subject: 46 Status while doing a Read Next on a VSAM File. |
|
|
I have a Job which abends in the following way.
The Pgm doing a READ NEXT return 46 status and the Job abends. But when restarted the Job runs fine. The Error is shown as an Error in the PATH1 of the AIX. There are two jobs using the same file and both the Jobs abend at the same place at the same record and run fine after restarting. Both run at different times, so there is no question of contention. Can some one help me on this. This is breaking my Head. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Thu Dec 04, 2003 10:59 am Post subject: |
|
|
Kumarshambu,
A status code of 46 means that a sequential READ was attempted but no valid next record had been established .ie. you might have reached EOF in your previous read itself.but when you restart the job, the read key value may be reset and that might be the reason for the program to finish wihtout abending.
Another scenario would be opening an empty VSAM file in I-O mode. Now when you read the file you would get a status code of 46.
By any chance is the vsam file DUMMIED out? i.e
Code: |
//VSAMFILE DD DUMMY
|
In this case the open will give a return code of 0 but when you try to read it will give you a return code of 46.
Hope this helps...
cheers
kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
kumarsambhu Beginner
Joined: 04 Dec 2003 Posts: 2 Topics: 1
|
Posted: Fri Dec 05, 2003 1:00 am Post subject: |
|
|
Thanks for the reply Kolusu.
I know that 46 is when there is no next valid rec for a READ NEXT. But my problem is that there are records after that record.
The problem comes only when its trying to read for the first time.
When the Job is restarted it does not give any problem. Hope you got my problem. Is it some problem with the AIX ??? I have two Paths for File and the AIX is created with an UPGRADE only but not built seperately.
Not able to trace what the problem is. |
|
Back to top |
|
|
|
|