View previous topic :: View next topic |
Author |
Message |
Anand_R Intermediate
Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Fri Nov 14, 2003 3:00 pm Post subject: vsam file status 92 while reading. |
|
|
Hi,
Can some one elaborate me what is the file status 92 , while reading the vsam file. I know it is logic error, but what does it mean.. please let me know if you need anything else ..
Thanks
Anand |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Fri Nov 14, 2003 3:35 pm Post subject: |
|
|
Anand,
A couple of things to check for status code 92.
1. check the access mode in file declaration. ie FD section.Make sure that it matches the listcat info of the vsam file.
2. Make sure that the record being read into a layout is not smaller than the recod.
3.If you are using a START verb to read a record directly, you first need to populate value to the record key.
check this link for sample porgram to check the status codes.
checking VSAM status codes
Hope this helps...
cheers
kolusu |
|
Back to top |
|
|
Anand_R Intermediate
Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Fri Nov 14, 2003 4:11 pm Post subject: |
|
|
Thanks for ur reply Kolusu..
I have checked it out, and there is a conflict in file definitions.. Actually VSAM file is Sequential, and I have defined in the program as DYNAMIC. I want to conver that file from sequential to dynamic.. can you help me out..
Thanks
Anand |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
Posted: Sat Nov 15, 2003 11:16 am Post subject: |
|
|
Anand,
If I understand you correctly, you have an ESDS file and you want to use it for both sequential and random processing. Convert this file into a RRDS or KSDS which allows dynamic access mode.
Hope this helps...
cheers
kolusu |
|
Back to top |
|
|
Anand_R Intermediate
Joined: 24 Dec 2002 Posts: 189 Topics: 60
|
Posted: Sun Nov 16, 2003 7:16 pm Post subject: |
|
|
Yes it did work.. .thanks a lot for ur help kolusu...U just simply great man..thanks once again.
Anand |
|
Back to top |
|
|
|
|