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

What is VSAM return code 29, 21, 10


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

New User


Joined: 12 Dec 2005
Posts: 13

PostPosted: Fri Jan 06, 2006 6:29 pm
Reply with quote

Hi all,


I am a slient member of this group for the last few months.

I have few quries regarding VSAM

1. What is the difference between ESDS and Seq file when we are accessing a records in sequential?

2. What is VSAM return code 29, 21, 10?

Thanks,
Sree.
Back to top
View user's profile Send private message
khamarutheen

Active Member


Joined: 23 Aug 2005
Posts: 677
Location: NJ

PostPosted: Fri Jan 06, 2006 6:38 pm
Reply with quote

Hi Sree,

Quote:
1. What is the difference between ESDS and Seq file when we are accessing a records in sequential?


ESDS is a sequential file reading only

Quote:
2. What is VSAM return code 29, 21, 10?


21 - A sequence error exists for a sequentially accessed indexed file. The prime record key value has been changed by the program between the successful execution of a READ statement and the execution of the next REWRITE statement for that file, or the ascending requirements for successive record key values were violated.

10 - A sequential READ statement was attempted and no next logical record existed in the file because the end of the file had been reached, or the first READ was attempted on an optional input file that was not present.
Back to top
View user's profile Send private message
Pradeepshan

New User


Joined: 20 Jan 2006
Posts: 6
Location: bangalore

PostPosted: Thu Feb 09, 2006 7:48 am
Reply with quote

What is the difference between ESDS and Seq file when we are accessing a records in sequential?

The ESDS is similar to Sequencial file. When it come to record accessing, the records are fetched in the same way as the Seq datasets but ESDS has more flexiblity than Seq datasets.
In ESDS the records are fetched witha Relative Byte Address (RBA).

With RBA random access of records is possible.

Records can be updated/overwritten in ESDS , these records need not be of the same length.
Back to top
View user's profile Send private message
priyesh.agrawal

Senior Member


Joined: 28 Mar 2005
Posts: 1448
Location: Chicago, IL

PostPosted: Thu Feb 09, 2006 11:30 am
Reply with quote

You would like to add this link in to your favourites for future reference on VSAM File Status Codes.

Thanks SuperK.

Regards,

Priyesh.
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 run rexx code with jcl CLIST & REXX 15
No new posts Compile rexx code with jcl CLIST & REXX 6
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
Search our Forums:

Back to Top