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

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?
meghakantha
 
Posts: 1
Joined: Wed Jul 16, 2014 4:50 pm
Has thanked: 0 time
Been thanked: 0 time

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times

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.
gauthamnagpur18
 
Posts: 93
Joined: Sat Oct 23, 2010 1:28 pm
Location: Chennai, India
Has thanked: 3 times
Been thanked: 3 times

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.
Robert Sample
Global moderator
 
Posts: 3720
Joined: Sat Dec 19, 2009 8:32 pm
Location: Dubuque, Iowa, USA
Has thanked: 1 time
Been thanked: 279 times


Return to VSAM/SMS

 


  • Related topics
    Replies
    Views
    Last post