> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[email protected]] On Behalf Of esmie moo > Sent: Wednesday, April 07, 2010 8:51 AM > To: [email protected] > Subject: JCL QUESTION > > Good Morning Gentle Readers, > > I have a problem with a batch job which keeps failing on a > JCL error. The first step deletes the dsn and the second > step recreates the dsn using PGM=IDCAMS. Is there a way of > having the job continue to execute STEP2 even though it posts > a jcl error (dsn not found) in STEP1. I looked at using > COND=EVEN but it doesn't work because the job did not abend > to meet the condition. > > Is there another way of going about having the job continue > to STEP2 eventhough STEP1 has a jcl error? > > Thanks
No. There is no way to continue a job if a step gets a JCL error. I would guess that STEP1 is IEFBR14 with a DISP=(OLD,DELETE). If so, you could just remove the step and do a DELETE command in the IDCAMS step before allocating the new version. I do something like: //STEP2 EXEC PGM=IDCAMS //SYSPRINT DD SYSOUT=* //SYSIN DD * DEL old.dsn.name SET MAXCC=0 DEFINE ... /* all the time. If you need to be sure that nobody else is using the DSN, then put an IEFBR14 step at the end of the job with a DISP=OLD on it. -- John McKown Systems Engineer IV IT Administrative Services Group HealthMarkets® 9151 Boulevard 26 . N. Richland Hills . TX 76010 (817) 255-3225 phone . (817)-961-6183 cell [email protected] . 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® is the brand name for products underwritten and issued by the insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance Company®, Mid-West National Life Insurance Company of TennesseeSM and The MEGA Life and Health Insurance Company.SM ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html

