View previous topic :: View next topic |
Author |
Message |
mangsk Beginner

Joined: 05 Jun 2004 Posts: 46 Topics: 18
|
Posted: Sat Jun 12, 2004 2:54 am Post subject: VSAM file opening |
|
|
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 |
|
 |
kolusu Site Admin

Joined: 26 Nov 2002 Posts: 12378 Topics: 75 Location: San Jose
|
|
Back to top |
|
 |
slade Intermediate
Joined: 07 Feb 2003 Posts: 266 Topics: 1 Location: Edison, NJ USA
|
Posted: Sun Jun 13, 2004 10:21 am Post subject: |
|
|
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 |
|
 |
|
|