IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

how to synchronize jobs across LPARs - HELP !


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

New User


Joined: 31 Oct 2006
Posts: 85
Location: brisbane

PostPosted: Sun May 12, 2019 6:49 am
Reply with quote

I have an need to synchronize jobs running across DEV and PROD LPARs.

Multiple instances of job P needs to run in Production in sequence 1... N, where N is sometimes large (1000 +)

Job P(1) creates file X on a shared disk pack. Job P(1) (in the final step) submits Job D(1) which runs in the Development LPAR

D(1) requires SHR access to X

the problem is that D(1) needs to en-queue X before job P(2) en-queues X (to overwrite), otherwise job D(1) will fail and file X is lost.

so ... I added a job delay (5 seconds) as a final step in job P1. This works about 95% of the time, as there are some conditions that will delay jobs D(n) outside of my control. Even setting it to 1 minute won't help.

so .. looking for suggestions. The constraints are such that I can't identify the output file X with individual jobs (ie, X(1), X(2).. X(n) ) , so X is the only file available for output.

is there a shared resource between LPARs, something that I can use as a semaphore ?
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1230
Location: Vilnius, Lithuania

PostPosted: Sun May 12, 2019 12:41 pm
Reply with quote

That's why they invented schedulers...
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 397
Location: Denmark

PostPosted: Sun May 12, 2019 1:47 pm
Reply with quote

Do you have dasd shared between the sysplexes? Then you can have a program (REXX?) reading and updating a shared dataset.
I also prefer a proper scheduler.
Back to top
View user's profile Send private message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 85
Location: brisbane

PostPosted: Sun May 12, 2019 3:48 pm
Reply with quote

Agree. We have OPC which I have used extensively in the past, and this woudl be the ideal tool, but there is a process for getting new applications added which takes considerable time in our shop. This piece of work is to meet an ad-hoc request from management.
Back to top
View user's profile Send private message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 85
Location: brisbane

PostPosted: Sun May 12, 2019 3:53 pm
Reply with quote

but yes ... the REXX option is probably the most expedient ..
Back to top
View user's profile Send private message
enrico-sorichetti

Senior Member


Joined: 14 Mar 2007
Posts: 10695
Location: italy

PostPosted: Sun May 12, 2019 6:35 pm
Reply with quote

frankly I do not see how using rexx to process a dataset would be different from doing the same with a <any other language> program
Back to top
View user's profile Send private message
prino

Senior Member


Joined: 07 Feb 2009
Posts: 1230
Location: Vilnius, Lithuania

PostPosted: Sun May 12, 2019 11:21 pm
Reply with quote

If OPC is OOTQ, you might want to try Personal Job Scheduler - website seems to be seriously cob-web-ish.
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 397
Location: Denmark

PostPosted: Mon May 13, 2019 1:34 pm
Reply with quote

Quote:
frankly I do not see how using rexx to process a dataset would be different from doing the same with a <any other language> program

It isn't. It's just that I have done something similar using REXX because it was easy to do and this part of the application was not performance sensitive.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic All times are GMT + 6 Hours
Forum Index -> JCL & VSAM
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts List of Active Jobs in CTRL-M JCL & VSAM 1
No new posts Introducing new step in set of jobs CLIST & REXX 6
No new posts How to add new LPARs and change exist... All Other Mainframe Topics 0
No new posts LOCKMAX Issue for BMP Jobs IMS DB/DC 4
No new posts List of jobs ran thru scheduler All Other Mainframe Topics 1

Back to Top