Thanks for your response! I thought that to be true, however the /*ROUTE PRINT option only takes a printer name as an argument. Do I need to define a jes printer and point the printer definition to the external writer name? I don't know if one can do that.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Veilleux, Jon L Sent: Friday, August 11, 2006 9:47 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Jcl output statement and external writer's If I remember my JES correctly, OUTPUT cards don't take effect until after conversion. If you have a JCL error early on then you need to have /*ROUTE PRINT. Jon L. Veilleux [EMAIL PROTECTED] (860) 636-2683 -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On Behalf Of Steve Pordash Sent: Friday, August 11, 2006 12:17 PM To: IBM-MAIN@BAMA.UA.EDU Subject: Jcl output statement and external writer's Hi all, My question is concerning JCL output statement and external writer's. I wrote an external writer and it works great only if the job that I submit does not fail with a JCL error. For some reason the external writer does not get the JES system output files when the job fails with a JCL error. The test job that I submit looks like this: //MYJOB2 JOB (P390),NOTIFY=P390,MSGLEVEL=(1,1),CLASS=A, // MSGCLASS=A //OUTPUT OUTPUT JESDS=ALL,WRITER=TESTWTR1,DEFAULT=YES //S010 EXEC PGM=IEFBR14 // ADFSA SADF SFDA // Notice that the 5th line contains an invalid jcl statement. When I submit the job of course it fails, but the jes spool files do not get routed to the external writer program, they seem to be held by JES (I think). I read that the jcl output statements only get evaluated if there is no JCL errors or TYPRUN=(SCAN,HOLD) is not specified. How can I force JES to route the output to the external writer regardless of the failure? Thanks inadvance for any help! ---------------------------------------------------------------------- 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 ----------------------------------------- This e-mail may contain confidential or privileged information. If you think you have received this e-mail in error, please advise the sender by reply e-mail and then delete this e-mail immediately. Thank you. Aetna ---------------------------------------------------------------------- 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 ---------------------------------------------------------------------- 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