IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM File not opening in I-O Mode


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 29, 2008 6:14 pm
Reply with quote

Putting DCB parameters on a VSAM file will cause problems. You do not use DCB parameters with VSAM files. You can specify in JCL AMP=AMORG to indicate a VSAM file, or if you want to specify some buffers you can specify AMP=('BUFND=30,BUFNI=5') or whatever makes sense in your case. But in no case will you specify DCB in the JCL for a VSAM file.
Back to top
View user's profile Send private message
swathiravichandran

New User


Joined: 21 Jul 2008
Posts: 19
Location: Mumbai

PostPosted: Mon Sep 29, 2008 8:20 pm
Reply with quote

what can I do if I get a file status code of 23??
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8697
Location: Dubuque, Iowa, USA

PostPosted: Mon Sep 29, 2008 8:34 pm
Reply with quote

A file status 23 is normal and expected when you do a random READ (or START) and the record key you specified does not exist. What can you do? Read a different record, write the new record into the file, or skip the record and proceed -- what you do depends on the application requirements and you're certainly not going to find that out on a forum.
Back to top
View user's profile Send private message
ridgewalker58

New User


Joined: 26 Sep 2008
Posts: 51
Location: New York

PostPosted: Mon Sep 29, 2008 9:55 pm
Reply with quote

And what was the value that was in the WS-VSAM-STATUS field when your program displayed VSAM UN-SUCCESSFUL'. The VSAM UN-SUCCESFUL message seems to say that the OPEN was UNSUCCESSFUL.

Does your VSAM file have any records in it,
Does your VSAM file have records that are within the sizes in your
01 level record descriptions in the FD clause
OR
If your VSAM file has only one sized record, does your 01 level match that record size
OR
Does your RECORD KEY field in your FD clause match the KEY field that you used in your Define Cluster cards for the VSAM file
Back to top
View user's profile Send private message
swathiravichandran

New User


Joined: 21 Jul 2008
Posts: 19
Location: Mumbai

PostPosted: Tue Sep 30, 2008 9:59 am
Reply with quote

Thank you Robert my problem has solved..since my vsam file contain single record...it is unable to access in randome mode..now the problem is solved icon_smile.gif
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming Goto page Previous  1, 2

 


Similar Topics
Topic Forum Replies
No new posts Compare 2 files and retrive records f... DFSORT/ICETOOL 3
No new posts FTP VB File from Mainframe retaining ... JCL & VSAM 8
No new posts Extract the file name from another fi... DFSORT/ICETOOL 6
No new posts How to split large record length file... DFSORT/ICETOOL 10
No new posts HILITE on Browse mode? TSO/ISPF 2
Search our Forums:

Back to Top