View previous topic :: View next topic
|
Author |
Message |
pradip_silu
New User
Joined: 25 May 2005 Posts: 4 Location: bhubaneswar
|
|
|
|
dear members
in file handling we usually define FILE STATUS IS stat1.
But sometimes the return code is not is not enough for diagnosing the
actual error, So we define another key which stores the VSAM return code.
can any one guide me the VSAM return codes and their meanings!
Thanking in advance
Pradip. |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
Back to top |
|
|
pradip_silu
New User
Joined: 25 May 2005 Posts: 4 Location: bhubaneswar
|
|
|
|
thank u rexguy for your link, but i am looking for vsam return code.
for your information we define it as a 6 character alphanumeric item
as follows;
FILE STATUS IS STAT1,STAT2.
HERE STAT1 IS FOR COBOL STATUS CODE
and STAT2 is for vsam return code.
STAT2 is defined as follows:
STAT2.
VSAM-FUNC PIC X.
VSAM-RETURN PIC XX.
VSAM-FEEDBACK PIC XX.
though i am not sure about the above definition but it is quite similar
to that.
Hope u got what i meant.
in case u didn't got it please inform.
Thankig u in advance
pradip |
|
Back to top |
|
|
jon_s_rice
Active User
Joined: 24 Mar 2005 Posts: 102 Location: Douglasville, GA USA
|
|
|
|
Specify data-name-8 only if the file is a VSAM file (that is,
RRDS).
For VSAM files the 6-byte VSAM return code is comprised
The first 2 bytes of data-name-8 contain the VSAM return
format. The value for this code is defined (by VSAM)
The next 2 bytes of data-name-8 contain the VSAM function
binary format. The value for this code is defined (by
4, or 5.
The last 2 bytes of data-name-8 contain the VSAM feedback
format. The code value is 0 through 255.
This last field corresponds to Extended file status keys. |
|
Back to top |
|
|
|