IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

VSAM file to be used by more than 1000 jobs in a day


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
i.jagath

New User


Joined: 21 May 2010
Posts: 3
Location: USA

PostPosted: Thu Aug 20, 2015 10:36 pm
Reply with quote

Please suggest which is the best way to make a VSAM file available for read/update by 1000 jobs. All these jobs run daily and are file triggered. Files are copied into the mainframe at 5 min intervals from a FTP server i.e. there is a huge possibility that 10 files arrive on mainframe and 10 jobs get triggered and they are trying to get exclusive access of the VSAM.

The problem that we are facing with one approach i.e. if we used DISP=SHR and share options 3, there is an issue with sequence integrity and also one job gets hold of the vsam and other jobs abend.

Any recommendation on what should be the approach best suited for our needs.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 446
Location: USA

PostPosted: Thu Aug 20, 2015 11:45 pm
Reply with quote

Are all the jobs update jobs?

And how long is each job supposed to run? Can they finish in 5-10 mins or they may take hours to complete?

Can you have 10 separate VSAM files created from the original and merge them later?

I think the important question is how many jobs are going to update the VSAM and how many are read only.
Back to top
View user's profile Send private message
i.jagath

New User


Joined: 21 May 2010
Posts: 3
Location: USA

PostPosted: Thu Aug 20, 2015 11:50 pm
Reply with quote

All the jobs does the same thing read and update the VSAM.

Most of the jobs will run in less than 5 min but some jobs take upto 2 hours.
Back to top
View user's profile Send private message
RahulG31

Active User


Joined: 20 Dec 2014
Posts: 446
Location: USA

PostPosted: Thu Aug 20, 2015 11:57 pm
Reply with quote

And can you divide the VSAM into, say 10 parts, and use each part in approx. 100 jobs which use those particular records. Is it a possibility?

Secondly, do you have anything such as update timestamp in VSAM?
Back to top
View user's profile Send private message
i.jagath

New User


Joined: 21 May 2010
Posts: 3
Location: USA

PostPosted: Fri Aug 21, 2015 12:37 am
Reply with quote

splitting the VSAM is not a possiblity. We are in code freeze for our project and this change will not be approved. I am looking at smaller approach.

and there is no update timestamp.
Back to top
View user's profile Send private message
Rohit Umarjikar

Global Moderator


Joined: 21 Sep 2010
Posts: 3076
Location: NYC,USA

PostPosted: Fri Aug 21, 2015 1:49 am
Reply with quote

Quote:
i.e. if we used DISP=SHR and share options 3, there is an issue with sequence integrity


What do you mean by this?

Quote:
and also one job gets hold of the vsam and other jobs abend.


Try for Negative dependency between the jobs during the scheduling?
Back to top
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2454
Location: Hampshire, UK

PostPosted: Fri Aug 21, 2015 2:29 am
Reply with quote

You could make all the jobs run in the same class - and allow no other jobs to run in that class. Then set the machine up so that there is only one initiator processing that class.
Back to top
View user's profile Send private message
dneufarth

Active User


Joined: 27 Apr 2005
Posts: 420
Location: Inside the SPEW (Southwest Ohio, USA)

PostPosted: Fri Aug 21, 2015 7:36 am
Reply with quote

Nic,

You would think that a "serial" initiator would be standard in all shops just for things like this. Guess it was the norm in the past, but not anymore.

Dave
Back to top
View user's profile Send private message
Terry Heinze

JCL Moderator


Joined: 14 Jul 2008
Posts: 1248
Location: Richfield, MN, USA

PostPosted: Fri Aug 21, 2015 7:50 pm
Reply with quote

Record Level Sharing (RLS) could be PART of the solution. Are you using it?
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Aug 25, 2015 1:36 pm
Reply with quote

Surely the easiest way is just to use your scheduler to ensure only one job can run at a time?
Back to top
View user's profile Send private message
Garry Carroll

Senior Member


Joined: 08 May 2006
Posts: 1205
Location: Dublin, Ireland

PostPosted: Tue Aug 25, 2015 3:34 pm
Reply with quote

If the jobs can run concurrently and require update access, maybe consider using the CICS EXCI interface to have CICS perform the I/O and ensure datga integrity?

Garry.
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 590
Location: London

PostPosted: Tue Sep 08, 2015 2:42 am
Reply with quote

You could explore the use of VSAM Record Level Sharing (RLS) for the file.

It involves a possible new Storclas definition and possible Coupling Facility structure definition.

(damn..just saw Terry already suggested!)
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Unable to interpret a hex value to De... COBOL Programming 4
No new posts how to eliminate null indicator value... DB2 7
No new posts VSAM LISTCAT INFORMATION JCL & VSAM 2
No new posts Format Binary file to EBCDIC JCL & VSAM 4
No new posts Binary File format getting change whi... All Other Mainframe Topics 7
Search our Forums:

Back to Top