Page 1 of 1

Vsam to used by both online and batch program

PostPosted: Wed Jul 16, 2014 4:55 pm
by meghakantha
the scenario is like this. one KSDS file has to used by both online and batch program . what is the logic?

Re: vsam

PostPosted: Wed Jul 16, 2014 5:58 pm
by Robert Sample
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.

Re: Vsam to used by both online and batch program

PostPosted: Wed Jul 23, 2014 12:13 am
by gauthamnagpur18
KSDS might be IAM file. IAM can be used by both online and batch.

Re: Vsam to used by both online and batch program

PostPosted: Wed Jul 23, 2014 1:29 am
by Robert Sample
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.