The DD could be dynamically freed and re-allocated with the proper writer name before it's opened.
>>> "Sproull, George J Mr CTR US DISA CDB14" >>> <george.sproull....@csd.disa.mil> 3/4/2009 11:30 AM >>> Ok.....after a little more research, it looks like I would need to code a JES exit 40 to change the WRITER name in the PDDB before a JOE is created. I really wanted to avoid that if possible. Agree? Any other ideas? Thanks. -----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of Sproull, George J Mr CTR US DISA CDB14 Sent: Tuesday, March 03, 2009 16:43 To: IBM-MAIN@bama.ua.edu Subject: Dynamic change of JES WRITER Hello, Given these JCL statements: //OUT01A OUTPUT CLASS=R,WRITER=W1,FORMS=F000 //OUT01 DD SYSOUT=(,), OUTPUT=(*,OUT01A) //OUT02A OUTPUT CLASS=R,WRITER=W1,FORMS=F999 //OUT02 DD SYSOUT=(,), OUTPUT=(*,OUT02A) What I am trying to do is to dynamically change the WRITER used for the OUT01 DD from W1 to W2 within an assembler program. I think I need to change a value in the JES characteristic JOE for this output grouping. Is the JOE accessible and modifiable by an application? Do I have to worry about the JOE being used by more than one SYSOUT in my (or another) job? Am I even on the right track? Thanks for any help you can give. ---------------------------------------------------------------------- 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 CONFIDENTIALITY/EMAIL NOTICE: The material in this transmission contains confidential and privileged information intended only for the addressee. If you are not the intended recipient, please be advised that you have received this material in error and that any forwarding, copying, printing, distribution, use or disclosure of the material is strictly prohibited. If you have received this material in error, please (i) do not read it, (ii) reply to the sender that you received the message in error, and (iii) erase or destroy the material. Emails are not secure and can be intercepted, amended, lost or destroyed, or contain viruses. You are deemed to have accepted these risks if you communicate with us by email. Thank you. ---------------------------------------------------------------------- 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