Steff Gladstone wrote: >The job is performing a change management system operation (moving a new >program version to production, saving previous generations, providing for >possible fallback, etc.). The operation for various reasons must be performed >in several job steps. We want to ENQ on the name of the program being handled >to prevent other operations or changes being made to that program in parallel. >Of course the ENQ must remain in effect for the duration of the entire >operation.
Ok. You've got good replies plus a very good probing question from D Jousma: 1. ENQ macro at first step and DEQ macro in last step. (Just check up your GRS/MIM setup as well your keywords of course) 2. DD with DISP=(OLD,PASS) or IEFBR14 with an unreferenced DSN. Failsafe, unless a weird ABEND happens. 3. SMF/JES2 Exit. 4. CA-11 with GDG or so for restart purposes. I'm not sure about this one, but I accept what was written. While I have some experience with handling ENQ problems and testing it out with Assembler to test our defective tape management system with incorrectly setup GRS across the Sysplex, I have a good solution for you for that specific situation. Do you have automation? If so, set up a flag (condition flag or variable) indicationg your process is running with 1 or many jobs and 1 or many steps. Only when the whole story is completed you turn off [1] that flag allowing others to start a new operation. Now setup your automation so that nothing else can run while that flag is running (made TRUE). This is NOT a ENQ solution, but you can perhaps consider this way since you don't want any JCL changes. HTH! Groete / Greetings Elardus Engelbrecht [1] - I eventually did the reverse - I [rather, let the automation team do the dirty work] setup the flag when a SMF job on a LPAR has finished - Only when all and every SMF flags in the whole SysPlex were made TRUE, then a certain job is kicked off automagically for that day. Then all those flags were cleared out for the next set of runs. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
