Vsam to used by both online and batch program
-
- 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
the scenario is like this. one KSDS file has to used by both online and batch program . what is the logic?
-
- 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
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.the scenario is like this. one KSDS file has to used by both online and batch program . what is the logic?
-
- 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
KSDS might be IAM file. IAM can be used by both online and batch.
-
- 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
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
-
-
Calling Java program on UNIX/USS from a COBOL CICS program?
by zbius » Tue Nov 05, 2024 2:37 pm » in IBM Cobol - 2
- 2602
-
by zbius
View the latest post
Wed Nov 06, 2024 6:02 pm
-
-
- 7
- 5231
-
by sergeyken
View the latest post
Fri Nov 13, 2020 1:24 am
-
- 2
- 1826
-
by prino
View the latest post
Sun Jun 16, 2024 12:38 am
-
-
RC's when running a REXX exec under ISPSTART in Batch
by golemis » Thu Nov 03, 2022 5:19 pm » in TSO & ISPF - 5
- 3523
-
by golemis
View the latest post
Fri Nov 04, 2022 2:19 pm
-
-
- 2
- 2277
-
by Terry Heinze
View the latest post
Tue Feb 15, 2022 9:13 pm