VSAM organization types

Support for OS/VS COBOL, VS COBOL II, COBOL for OS/390 & VM and Enterprise COBOL for z/OS
rogerstrycova
Posts: 6
Joined: Tue Sep 14, 2021 8:32 pm
Skillset: COBOL, basic CICS, DB2, basic JCL
Referer: online

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.

Terry Heinze
Posts: 239
Joined: Wed Dec 04, 2013 11:08 pm
Skillset: COBOL, JCL, ISPF.
Referer: While searching the Internet for answers.
Location: Richfield, MN, USA

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

Robert Sample
Global moderator
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Skillset: Systems programming, SAS, COBOL, CICS, JCL, SMS, VSAM, etc.
Referer: other forum
Location: Dubuque, Iowa, USA

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.


  • Similar Topics
    Replies
    Views
    Last post