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

Practical use of ESDS and RRDS VSAM files


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
Abijoy

New User


Joined: 24 Mar 2010
Posts: 12
Location: Bangalore

PostPosted: Thu Mar 25, 2010 12:59 pm
Reply with quote

Hi!

We use a KSDS when we need to read the file with a key and a flat file when only a sequential read is required. Can somebody give me some practical situations where we must use ESDS or RRDS file?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 25, 2010 1:07 pm
Reply with quote

An ESDS is the VSAM equivilent of a flat file, but with the added benefit of being able to utilise an alternate index to access the data in addition to sequential access.

RRDS is the VSAM equivilent of a DA file, and in all of my years in IT have rarely encountered the beast except for proprietry software packages.
Back to top
View user's profile Send private message
Abijoy

New User


Joined: 24 Mar 2010
Posts: 12
Location: Bangalore

PostPosted: Thu Mar 25, 2010 4:15 pm
Reply with quote

Thanks for the quick reply expat.
I am just curious to know in what situation is an ESDS preffered, rather than a flat file or a KSDS.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Thu Mar 25, 2010 4:24 pm
Reply with quote

That depends on the application requirements.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Mar 25, 2010 5:02 pm
Reply with quote

A CICS application that is recording log-type data would be one case where an ESDS file would make sense.
Back to top
View user's profile Send private message
Nainesh A Jadwani

New User


Joined: 15 Jan 2013
Posts: 6
Location: India

PostPosted: Sun Feb 03, 2013 7:34 pm
Reply with quote

Hi,


I too was looking for examples of practical uses of RRDS VSAM files. Didn't find much on the net except for this PowerPoint presentation. (Note to Moderator: hopefully not any copyright issue? PPT is quite freely accessible in my google search).

It, basically, explains that the most appropriate use of an RRDS would be when there is an obvious relationship between your record key and your record's RRN. For example, if you are a telephone company that needs a customer file by telephone numbers. Or if you are a bank that needs customer files by SSN.

A randomizing algorithm would need to be used to avoid large areas of empty RRDS slots for the above cases. All very nicely explained in the above link.

Thought of adding it to this post in case other folks (like Abijoy and myself) are curious about this 'beast'. icon_smile.gif


Thank you,
Nainesh A Jadwani
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10873
Location: italy

PostPosted: Sun Feb 03, 2013 7:39 pm
Reply with quote

any reason to resurrect a 3 Years old topic ??? icon_cool.gif

and anyway the examples You described are just examples of RYO data bases ...

and it is quite a few years that they are not fashionable any more
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Write line by line from two files DFSORT/ICETOOL 7
No new posts Access to non cataloged VSAM file JCL & VSAM 18
No new posts Compare only first records of the fil... SYNCSORT 7
No new posts Merge two VSAM KSDS files into third ... JCL & VSAM 6
No new posts Random read in ESDS file by using RBA JCL & VSAM 6
Search our Forums:

Back to Top