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

VSAM return codes and their meanings


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
pradip_silu

New User


Joined: 25 May 2005
Posts: 4
Location: bhubaneswar

PostPosted: Sat May 13, 2006 6:30 pm
Reply with quote

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
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Sun May 14, 2006 1:46 am
Reply with quote

see
www.simotime.com/vsmfsk01.htm
Back to top
View user's profile Send private message
pradip_silu

New User


Joined: 25 May 2005
Posts: 4
Location: bhubaneswar

PostPosted: Mon May 15, 2006 5:14 pm
Reply with quote

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
View user's profile Send private message
jon_s_rice

Active User


Joined: 24 Mar 2005
Posts: 102
Location: Douglasville, GA USA

PostPosted: Mon May 15, 2006 7:34 pm
Reply with quote

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
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 -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts CVDA value for RRDS VSAM dataset. CICS 2
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
Search our Forums:

Back to Top