MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

46 Status while doing a Read Next on a VSAM File.

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management
View previous topic :: View next topic  
Author Message
kumarsambhu
Beginner


Joined: 04 Dec 2003
Posts: 2
Topics: 1

PostPosted: Thu Dec 04, 2003 9:31 am    Post subject: 46 Status while doing a Read Next on a VSAM File. Reply with quote

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
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12375
Topics: 75
Location: San Jose

PostPosted: Thu Dec 04, 2003 10:59 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
kumarsambhu
Beginner


Joined: 04 Dec 2003
Posts: 2
Topics: 1

PostPosted: Fri Dec 05, 2003 1:00 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Data Management All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group