Gentle Contributers, I tested both suggestions and it worked. Thanks to all who have helped me with their suggestions.
--- On Thu, 4/8/10, Paul Gilmartin <paulgboul...@aim.com> wrote: From: Paul Gilmartin <paulgboul...@aim.com> Subject: Re: JCL QUESTION To: IBM-MAIN@bama.ua.edu Received: Thursday, April 8, 2010, 1:56 AM On Wed, 7 Apr 2010 06:50:55 -0700, esmie moo wrote: > >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? > Use DISP=(MOD,DELETE),SPACE=(1,0),UNIT=SYSALLDA in STEP1 and no JCL error should occur. (Untested.) -- gil ---------------------------------------------------------------------- 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 __________________________________________________________________ Looking for the perfect gift? Give the gift of Flickr! http://www.flickr.com/gift/ ---------------------------------------------------------------------- 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