Thanks. I like this approach and will investigate it more. Brad Wissink Information Technology Services Iowa State University 515-294-3088 -----Original Message----- From: IBM Mainframe Discussion List [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of McKown, John Sent: Wednesday, April 20, 2011 4:09 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Can a person deq SYSZJES2 SDB.address?
Is your STC APF authorized? I would assume so. If it is, then you can have the code check the life of job SSIB to see if it was started under JES2. If it was started under JES2, then you simply use MGCRE to issue the correct operator command: START STC,SUB=MSTR and then terminate normally. ref: http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2A2B0/29.0 and http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/IEA2A3A0/11.0 Example code (untested and likely not totally correct): IAZXJSAB READ, COMPID=COMPID LTR 15,15 JZ CONTINUE THERE IS A JSAB UNDER JES, SO WE AREN'T CLC COMPID,=CL4'MSTR' JE CONTINUE MGCRE TEXT=STARTME, MF=(E,LFORM) ... LFORM MGCRE MF=L STARTME DC AL2(CMDLEN) STARTCMD DC C'S STC,SUB=MSTR' CMDLEN EQU *-STARTCMD -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets(r) 9151 Boulevard 26 * N. Richland Hills * TX 76010 (817) 255-3225 phone * john.mck...@healthmarkets.com * www.HealthMarkets.com Confidentiality Notice: This e-mail message may contain confidential or proprietary information. If you are not the intended recipient, please contact the sender by reply e-mail and destroy all copies of the original message. HealthMarkets(r) is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company(r), Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM > -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:IBM-MAIN@bama.ua.edu] On Behalf Of Brad Wissink > Sent: Wednesday, April 20, 2011 3:46 PM > To: IBM-MAIN@bama.ua.edu > Subject: Can a person deq SYSZJES2 SDB.address? > > We have a home grown started task that controls how we > shutdown before an > IPL. If the STC is not started with ,SUB=MSTR then it shows > up as a task > still under JES2 when we do the $P JES2. We are trying to > automate the > whole process so not allowing the STC to run if the enq exist > is not what we > want. I am just fishing, but what kind of trouble would I > get into if I > just deq'd SYSZJES2 SDB.address for my STC? > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO > Search the archives at http://bama.ua.edu/archives/ibm-main.html > > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@bama.ua.edu with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html