Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

VSAM return codes and their meanings

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
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    Post subject: VSAM return codes and their meanings
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    Post subject:
Reply with quote

see
http://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    Post subject: vsam status code
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Updating a VSAM file with DISP=OLD sheersh JCL & VSAM 8 Tue Mar 14, 2017 6:14 pm
No new posts SORT VSAM file with each field one by... maxsubrat DFSORT/ICETOOL 6 Tue Mar 14, 2017 1:07 pm
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm
No new posts VSAM RLS=NRI while doing IDCAMS sheersh JCL & VSAM 1 Tue Mar 07, 2017 1:55 pm
No new posts MAX-RC 88 and Return code 606 in DFH0... lind sh CICS 2 Tue Jan 24, 2017 1:23 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us