View previous topic :: View next topic
|
Author |
Message |
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
what can I do if I get a file status code of 23?? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8697 Location: Dubuque, Iowa, USA
|
|
|
|
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 |
|
|
ridgewalker58
New User
Joined: 26 Sep 2008 Posts: 51 Location: New York
|
|
|
|
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 |
|
|
swathiravichandran
New User
Joined: 21 Jul 2008 Posts: 19 Location: Mumbai
|
|
|
|
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 |
|
Back to top |
|
|
|