Michael, You also can do it with BPXWDYN , i do that way without a hinch, either in COBOL,Assembler or PL/1 or Rexx . Scott J Ford
________________________________ From: Michael Knigge <[email protected]> To: [email protected] Sent: Mon, March 14, 2011 8:43:54 AM Subject: How to modify/add an OUTPUT-Statement to an DD at runtime? All, I need to change the attribute (in my case, the TITLE) of an OUTPUT-Statement at runtime. I've digged around a little bit in the IBM Manuals (Auth. Assember, ...) but I did not find the information I need. If I understand the docs correctly, it is not possible to modify an OUTPUT-Statement at runtime - I only can add with OUTADD and delete with OUTDEL an OUTPUT-Statement. So my idea is to create an additional OUTPUT-Statement with OUTADD at runtime. But I wonder if it is possible to *ADD* an additional OUTPUT-Statement to an existing DD-Statement (the DD-Statement may have already an associated/assigned OUTPUT-Statement).... Changing an existing TITLE-Attribute of an associated OUTPUT-Statement would make me happy also ;) But I did not find the data area that holds the OUTPUT-Statements (I know that I can find all DD-Statements at the TIOT, but I did not find the area that holds the OUTPUT-Statements). Well, and I guess (.... or afraid) that overwriting the title in memory would cause an S0C4). Anyone has an idea? Thank you very much, Michael ---------------------------------------------------------------------- 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

