VSAM organization types



Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS

VSAM organization types

Postby rogerstrycova » Fri Oct 22, 2021 12:38 pm

How to choose VSAM organization type to use? When is KSDS,ESDS,RRDS,LDS most suitable? Like what's the best VSAM type to use for batch processing, cics, etc.
rogerstrycova
 
Posts: 6
Joined: Tue Sep 14, 2021 8:32 pm
Has thanked: 0 time
Been thanked: 0 time

Re: VSAM organization types

Postby Terry Heinze » Fri Oct 22, 2021 6:47 pm

The organization type is better determined by access desired rather than whether it's batch or CICS. Sometimes you'll want sequential, other times random, other times a combination of both. There's an IBM redbook called VSAM Demystified that might be one of the best to look at.
.... Terry
Terry Heinze
 
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Location: Richfield, MN, USA
Has thanked: 12 times
Been thanked: 11 times

Re: VSAM organization types

Postby Robert Sample » Fri Oct 22, 2021 9:41 pm

KSDS is usually used when random access to data by a key is needed. ESDS is usually used for applications writing sequential data. RRDS is usually used when random access to data without a key is needed. LDS is rarely used by applications.

Asking
How to choose VSAM organization type to use?
is the exact opposite of the approach that should be taken. The first thing to determine is how does the data need to be organized? How will the data be written to VSAM? How will the data be retrieved from VSAM? Once you have the answers to these questions, that will suggest the organization that needs to be used.
Robert Sample
Global moderator
 
Posts: 3682
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 274 times


Return to IBM Cobol

 


  • Related topics
    Replies
    Views
    Last post