Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
how to synchronize jobs across LPARs - HELP !

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
jzhardy

New User


Joined: 31 Oct 2006
Posts: 43
Location: brisbane

PostPosted: Sun May 12, 2019 6:49 am    Post subject: how to synchronize jobs across LPARs - HELP !
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: 1163
Location: Vilnius, Lithuania

PostPosted: Sun May 12, 2019 12:41 pm    Post subject:
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: 323
Location: Denmark

PostPosted: Sun May 12, 2019 1:47 pm    Post subject:
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: 43
Location: brisbane

PostPosted: Sun May 12, 2019 3:48 pm    Post subject:
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: 43
Location: brisbane

PostPosted: Sun May 12, 2019 3:53 pm    Post subject:
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: 10632
Location: italy

PostPosted: Sun May 12, 2019 6:35 pm    Post subject: Reply to: how to synchronize jobs across LPARs - HELP !
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: 1163
Location: Vilnius, Lithuania

PostPosted: Sun May 12, 2019 11:21 pm    Post subject:
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: 323
Location: Denmark

PostPosted: Mon May 13, 2019 1:34 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Introducing new step in set of jobs ravikumar15 CLIST & REXX 6 Wed Oct 17, 2018 2:22 am
No new posts How to add new LPARs and change exist... Alan Playford All Other Mainframe Topics 0 Thu Aug 23, 2018 5:52 pm
No new posts LOCKMAX Issue for BMP Jobs Gopinath Shanmugam IMS DB/DC 4 Thu Jul 19, 2018 8:12 pm
No new posts List of jobs ran thru scheduler ddhar All Other Mainframe Topics 1 Tue Mar 27, 2018 4:32 am
No new posts Conversion of DLI update Jobs as BMP ... Gopinath Shanmugam IMS DB/DC 3 Wed Dec 20, 2017 12:02 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us