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 

VSAM file opening

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Application Programming
View previous topic :: View next topic  
Author Message
mangsk
Beginner


Joined: 05 Jun 2004
Posts: 46
Topics: 18

PostPosted: Sat Jun 12, 2004 2:54 am    Post subject: VSAM file opening Reply with quote

I've a VSAM KSDS file and it has no records in it. It is INDEXED VSAM and has ACCESS MODE IS RANDOM.
Now when I open the file in OUTPUT mode, I get file-status as '37'. Same problem is persisting for the file having records also. But all the documentation says that there should not be any problem in opening such file in 'OUTPUT' mode.
When I change the mode from OUTPUT to I-O, program works fine;but issue here is - By any chance, if the VSAM file comes to the program just after definition (and not initialized), I'll get file-status '35'. So, I'd prefer to open it in OUTPUT mode.
Any pointers to the solution/cause of this would be of great help.
TIA.
_________________
Regards,
Mangsk
Back to top
View user's profile Send private message Yahoo Messenger MSN Messenger
kolusu
Site Admin
Site Admin


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

PostPosted: Sat Jun 12, 2004 8:57 am    Post subject: Reply with quote

mangsk,

Please search before posting . check these topics

http://www.mvsforums.com/helpboards/viewtopic.php?t=2362&highlight=hurba
http://www.mvsforums.com/helpboards/viewtopic.php?t=2363&highlight=hurba

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
slade
Intermediate


Joined: 07 Feb 2003
Posts: 266
Topics: 1
Location: Edison, NJ USA

PostPosted: Sun Jun 13, 2004 10:21 am    Post subject: Reply with quote

Hi mangsk,

OPEN OUTPUT is a sequential access mode function. You specified ACCESS MODE IS RANDOM.

Change ACCESS MODE to SEQUENTIAL or DYNAMIC. That should solve the problem.

Regards, Jack.
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 -> Application Programming 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