Sorry I made a typo. It should read as : I have changed the jcl..... --- On Thu, 4/8/10, esmie moo <esmie_...@yahoo.ca> wrote:
From: esmie moo <esmie_...@yahoo.ca> Subject: Re: JCL QUESTION To: IBM-MAIN@bama.ua.edu Received: Thursday, April 8, 2010, 2:53 AM Howard, The STEP1 (first step) was performing an IEFBR14. It is trying to delete the dsn: //DELFILE EXEC PGM=IEFBR14 //DD1 DD DSN=CICS2.SYSB.LISTCAT,DISP=(OLD,DELETE,DELETE) The second step (STEP2) was trying to create the same dsn using IDCAMS: //LSYSBCAT EXEC PGM=IDCAMS //SYSPRINT DD DSN=CICS2.SYSB.LISTCAT,DISP=(NEW,CATLG,DELETE), // DCB=(RECFM=VBA,LRECL=125,BLKSIZE=3750), // SPACE=(TRK,(10,1),RLSE) I tried the suggestions that were made and it worked. I have not changed the jcl in STEP1 to read as :DISP=(MOD,DELETE),SPACE=(1,0) Thanks. --- On Thu, 4/8/10, Howard Brazee <howard.bra...@cusys.edu> wrote: From: Howard Brazee <howard.bra...@cusys.edu> Subject: Re: JCL QUESTION To: IBM-MAIN@bama.ua.edu Received: Thursday, April 8, 2010, 2:34 AM On 7 Apr 2010 06:51:15 -0700, esmie_...@yahoo.ca (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? Does the first job abend because it is not finding the file? How are you deleting it? ---------------------------------------------------------------------- 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 __________________________________________________________________ Get the name you've always wanted @ymail.com or @rocketmail.com! Go to http://ca.promos.yahoo.com/jacko/ ---------------------------------------------------------------------- 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 __________________________________________________________________ Connect with friends from any web browser - no download required. Try the new Yahoo! Canada Messenger for the Web BETA at http://ca.messenger.yahoo.com/webmessengerpromo.php ---------------------------------------------------------------------- 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