Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist 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 VSAM RLS Wait time blayek JCL & VSAM 2 Mon Oct 02, 2017 9:05 pm
No new posts Return a Non Numeric value from REXX Learncoholic CLIST & REXX 3 Fri Sep 01, 2017 8:33 pm
No new posts Multiple VSAM files single output fil... Mohan Kothakota DFSORT/ICETOOL 11 Wed Aug 09, 2017 7:57 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 18 Wed Jul 19, 2017 2:50 am
No new posts VSAM Space Allocation mrgnndhmk JCL & VSAM 7 Sat Apr 22, 2017 12:42 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us