Yep, I missed the dynamic allocation part. It can be done in JCL but I don't think it can be done dynamically. I've never tried to do that myself. I think you can create it with JCL and use or not use it in later steps. I've never found a problem creating a dataset that way in JCL and never opening it.
But my apologies for misreading the original poster's question. Jim Horne Paul Gilmartin wrote On Thu, 21 Nov 2024 13:44:37 +0000, Horne, Jim wrote: >If you create the file with DISP=(NEW,PASS) and reference it in later >steps with DISP=(OLD,PASS) you should have no problem. DISP=PASS by >itself will always assume you want a new file > What's the SVC 99 TU for that? Read the OP's requirement. ________________________________ NOTICE: All information in and attached to the e-mails below may be proprietary, confidential, privileged and otherwise protected from improper or erroneous disclosure. If you are not the sender's intended recipient, you are not authorized to intercept, read, print, retain, copy, forward, or disseminate this message. If you have erroneously received this communication, please notify the sender immediately by phone (704-758-1000) or by e-mail and destroy all copies of this message electronic, paper, or otherwise. By transmitting documents via this email: Users, Customers, Suppliers and Vendors collectively acknowledge and agree the transmittal of information via email is voluntary, is offered as a convenience, and is not a secured method of communication; Not to transmit any payment information E.G. credit card, debit card, checking account, wire transfer information, passwords, or sensitive and personal information E.G. Driver's license, DOB, social security, or any other information the user wishes to remain confidential; To transmit only non-confidential information such as plans, pictures and drawings and to assume all risk and liability for and indemnify Lowe's from any claims, losses or damages that may arise from the transmittal of documents or including non-confidential information in the body of an email transmittal. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN