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

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

Active User


Joined: 31 Oct 2006
Posts: 131
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: 1306
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 Member


Joined: 01 Sep 2015
Posts: 712
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

Active User


Joined: 31 Oct 2006
Posts: 131
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

Active User


Joined: 31 Oct 2006
Posts: 131
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

Superior Member


Joined: 14 Mar 2007
Posts: 10873
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: 1306
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 Member


Joined: 01 Sep 2015
Posts: 712
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Finding and researching jobs All Other Mainframe Topics 0
No new posts How to create a list of SAR jobs with... CA Products 3
No new posts Help in Automating Batch JCL jobs mon... JCL & VSAM 3
No new posts Submit multiple jobs from a library t... JCL & VSAM 14
No new posts Ca7 long running jobs report All Other Mainframe Topics 1
Search our Forums:

Back to Top