Vsam to used by both online and batch program

Help for IBM's record-oriented filesystem VSAM, ESDS, KSDS, RRDS, LDS and Storage management Subsystems
meghakantha
Posts: 1
Joined: Wed Jul 16, 2014 4:50 pm
Skillset: cobol, cics,vsam,db2,
Referer: through google

Vsam to used by both online and batch program

Postby meghakantha » Wed Jul 16, 2014 4:55 pm

the scenario is like this. one KSDS file has to used by both online and batch program . what is the logic?

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

Postby Robert Sample » Wed Jul 16, 2014 5:58 pm

the scenario is like this. one KSDS file has to used by both online and batch program . what is the logic?
As long as the KSDS data set is read-only to online and batch, there are no issues and allocate the file in batch with DISP=SHR. If you want online OR batch to update the data set, you will some issues but they can be resolved by using an enqueue / dequeue method in both batch and online. If you want online AND batch to update the data set, you will have major issues since CICS often holds the buffers for a period of time before updating the data set.

gauthamnagpur18
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Skillset: JCL , COBOL, VSAM , CICS
Referer: Through Google Search
Location: Chennai, India
Contact:

Re: Vsam to used by both online and batch program

Postby gauthamnagpur18 » Wed Jul 23, 2014 12:13 am

KSDS might be IAM file. IAM can be used by both online and batch.

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 to used by both online and batch program

Postby Robert Sample » Wed Jul 23, 2014 1:29 am

With the right SHAREOPTIONS, VSAM can be used both in online and batch at the same time -- as long as not more than one batch job or CICS region is attempting to update the data set; any number can be reading it. IAM is not required for this capability -- it is inherent in the SHAREOPTIONS used for the VSAM data set.


  • Similar Topics
    Replies
    Views
    Last post