Multiple jobs trying to write to same GDG simultaneously

In this Mainframe Forum - You can post your queries on JCL, OS/390 JCL, MVS JCL, z/OS JCL, JES2 & JES3

Moderators: Frank Yaeger, DikDude, Moderator Group

Post Reply
anuthereaper
Member
Posts: 3
Joined: Tue Apr 22, 2014 9:06 am

Multiple jobs trying to write to same GDG simultaneously

Post by anuthereaper » Thu Jun 19, 2014 11:19 am

Hi there,

I had a question regarding multiple jobs trying to write into the same GDG.

Let's say we have 3 jobs which are dataset triggered and all 3 jobs are attempting to write to the same GDG version(+1).
Now, if the incoming files come in at different times, there isn't a problem. But what if by some chance, all the 3 triggering files enter ANZD at the same time. Would we know what the behaviour will be like?

Also,can we use virtual resourcing in CA7 to ensure that only one job writes into the GDG at any one time even though all the jobs are triggered at the same time ?

Thanks,
AC

NicC
Active Member
Posts: 650
Joined: Sun Jul 24, 2011 5:27 pm
Location: Down on the pig farm

Post by NicC » Sun Jun 22, 2014 11:43 pm

+1 is not a version it is a generation - in GxxxxVyy Gxxxx is generation Vyy is version.
If you are writing to a dataset then the DISP for that dataset should be either OLD or NEW either of which gives a lock on the dataset so no other task can write to it until the dataset has been released.
Regards
Nic

Post Reply

FREE TUTORIALS

Tutorials
Free tutorials from mainframegurukul
  • JCL Tutorial
    Covers all important JCL concepts.
  • Cobol Tutorial
    This tutorials covers all Cobol Topics from STRING to COMP-3.
  • DB2 Tutorial
    DB2 Tutorial focuses on DB2 COBOL Programming.
  • SORT Tutorial
    This Tutorial covers all important aspects of DFSORT with examples
  • CICS Tutorial
    This CICS tutorial covers CICS concepts and CICS Basics, CICS COBOL Programming.
Interview
Mainframe Interview questions



Other References
Mainframe Tools and others