The ENQ has to be transparent to the JCL. Could I dynamically allocate a dataset with DISP=(OLD,PASS)? As I recall the dynamic allocation does not permit the use of PASS.
On Mon, Apr 20, 2015 at 5:30 PM, Blaicher, Christopher Y. < [email protected]> wrote: > I guess you could do that, assign the initiator TCB to the ENQ, but what > happens if the job abends before the step you do the DEQ in? > > I think this will work - If the purpose is to prevent two similar > processes, then why not use a common data set and allocate it as > DISP=(OLD,PASS). That way the ENQ on the data set will last for the > duration of the job, and if it dies early the ENQ automatically goes away. > > Chris Blaicher > Technical Architect > Software Development > Syncsort Incorporated > 50 Tice Boulevard, Woodcliff Lake, NJ 07677 > P: 201-930-8234 | M: 512-627-3803 > E: [email protected] > > -----Original Message----- > From: IBM Mainframe Discussion List [mailto:[email protected]] On > Behalf Of Steff Gladstone > Sent: Monday, April 20, 2015 10:13 AM > To: [email protected] > Subject: ENQ for the life of the job > > How do I use the ISGENQ macro in such a way that the ENQ lasts for the > life of the entire job (or several job steps) and not just for the life of > a single job-step? Would specifying the TCB address of the initiator TCB > on the TCB parameter work? Any better ideas? > > Thanks, > Steff Gladstone > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, send email > to [email protected] with the message: INFO IBM-MAIN > > ________________________________ > > > > ATTENTION: ----- > > The information contained in this message (including any files transmitted > with this message) may contain proprietary, trade secret or other > confidential and/or legally privileged information. Any pricing information > contained in this message or in any files transmitted with this message is > always confidential and cannot be shared with any third parties without > prior written approval from Syncsort. This message is intended to be read > only by the individual or entity to whom it is addressed or by their > designee. If the reader of this message is not the intended recipient, you > are on notice that any use, disclosure, copying or distribution of this > message, in any form, is strictly prohibited. If you have received this > message in error, please immediately notify the sender and/or Syncsort and > destroy all copies of this message in your possession, custody or control. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
