The suggestion of using LISTDSI worked. Thanks, Ray Baraniecki Morgan Stanley Smith Barney 18th Floor 1 New York Plaza New York, NY 10004 Office - 212-276-5641 Cell - 917-597-5692 ray.baranie...@morganstanley.com BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS E-MAIL.
-----Original Message----- From: IBM Mainframe Discussion List [mailto:ibm-m...@bama.ua.edu] On Behalf Of C. Ardillo Sent: Tuesday, July 14, 2009 1:18 PM To: IBM-MAIN@bama.ua.edu Subject: Re: Obtaining the Dsname in a Rexx Program For a file allocated via DD FC = LISTDSI(ddname FILE) DSN = SYSDSNAME DSN will then contain your filename. Baraniecki, Ray wrote: >Is there a way to obtain the dataset name for a file allocated in a Rexx >program? This seems like a simple task but I just cannot think of how to do >this. > > >Thanks, > > >Ray Baraniecki >Morgan Stanley Smith Barney >18th Floor >1 New York Plaza >New York, NY 10004 >Office - 212-276-5641 > Cell - 917-597-5692 > >ray.baranie...@morganstanley.com<mailto:ray.baranie...@morganstanley.com> > >BE CARBON CONSCIOUS. PLEASE CONSIDER OUR ENVIRONMENT BEFORE PRINTING THIS >E-MAIL. > > >-------------------------------------------------------------------------- >Important Notice to Recipients: >It is important that you do not use e-mail to request, authorize or effect the >purchase or sale of any security or commodity, to send fund transfer >instructions, or to effect any other transactions. Any such request, orders, >or instructions that you send will not be accepted and will not be processed >by Morgan Stanley Smith Barney. >The Global Wealth Management Group of Morgan Stanley & Co. Incorporated and >the Smith Barney division of Citigroup Global Markets Inc. have combined into >Morgan Stanley Smith Barney LLC, a new investment adviser and broker-dealer >registered with the Securities and Exchange Commission. The sender of this >email is an employee of Morgan Stanley Smith Barney. > >Important disclosures on Morgan Stanley and Citi Investment Research & >Analysis research reports may relate in part to the separate businesses of >Citigroup Global Markets Inc. and Morgan Stanley that now form Morgan Stanley >Smith Barney LLC. To view these important research disclosures, go to >http://www.morganstanley.com/researchdisclosures and >https://www.citigroupgeo.com/geopublic/Disclosures/index_a.html. > >If received in error, please destroy and notify sender. Sender does not intend >to waive confidentiality or privilege. Use of this email is prohibited when >received in error. We may monitor and store emails to the extent permitted by >applicable law. > > > >---------------------------------------------------------------------- >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 -------------------------------------------------------------------------- Important Notice to Recipients: It is important that you do not use e-mail to request, authorize or effect the purchase or sale of any security or commodity, to send fund transfer instructions, or to effect any other transactions. Any such request, orders, or instructions that you send will not be accepted and will not be processed by Morgan Stanley Smith Barney. The Global Wealth Management Group of Morgan Stanley & Co. Incorporated and the Smith Barney division of Citigroup Global Markets Inc. have combined into Morgan Stanley Smith Barney LLC, a new investment adviser and broker-dealer registered with the Securities and Exchange Commission. The sender of this email is an employee of Morgan Stanley Smith Barney. Important disclosures on Morgan Stanley and Citi Investment Research & Analysis research reports may relate in part to the separate businesses of Citigroup Global Markets Inc. and Morgan Stanley that now form Morgan Stanley Smith Barney LLC. To view these important research disclosures, go to http://www.morganstanley.com/researchdisclosures and https://www.citigroupgeo.com/geopublic/Disclosures/index_a.html. If received in error, please destroy and notify sender. Sender does not intend to waive confidentiality or privilege. Use of this email is prohibited when received in error. We may monitor and store emails to the extent permitted by applicable law. ---------------------------------------------------------------------- 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