<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Renaming Email Attachments in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3427#M1475</link>
    <description>Hi,&lt;BR /&gt;
  I have to admit that my mainframe days are fading into the past, but wasn't there a utility program called IEBCOPY or something that you could use? As I remember, spaces are not valid in mainframe dataset names, but it seems to me that you could use mainframe utilities to rename the file from:&lt;BR /&gt;
G741270.DATASET.NAME to LATEST.DATA.FILE&lt;BR /&gt;
 &lt;BR /&gt;
Or even better, just use the name you want in your SAS program (if you are using SAS to create G741270.DATASET.NAME ). The only way that I can think of to do it with SAS is to issue an X command that issues a TSO command to do the rename OR an X command to invoke a CLIST, but if you're doing this in batch JCL, then you might need a different approach.&lt;BR /&gt;
   &lt;BR /&gt;
This is probably a question that is best answered by Tech Support, since they are better in tune with how to do things on the mainframe these days.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 14 Jun 2007 16:13:45 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2007-06-14T16:13:45Z</dc:date>
    <item>
      <title>Renaming Email Attachments</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3425#M1473</link>
      <description>Is it possible to rename a file when attaching it to an email?&lt;BR /&gt;
&lt;BR /&gt;
I am sending the file from a mainframe dataset.&lt;BR /&gt;
&lt;BR /&gt;
I currently using code like so:&lt;BR /&gt;
&lt;BR /&gt;
ATTACH=("G741270.DATASET.NAME" EXT='CSV');&lt;BR /&gt;
&lt;BR /&gt;
I would like to rename the file to something like "latest data file.csv"&lt;BR /&gt;
&lt;BR /&gt;
is there a RENAME= option I could use?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
thanks,</description>
      <pubDate>Thu, 14 Jun 2007 15:56:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3425#M1473</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-06-14T15:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Email Attachments</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3426#M1474</link>
      <description>Use the NAME= and EXTENSION= options in the ATTCH= clause of the email filename to cause the attachment to be received with a different name.&lt;BR /&gt;
&lt;BR /&gt;
See &lt;A href="http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002058232.htm" target="_blank"&gt;http://support.sas.com/onlinedoc/913/getDoc/en/lrdict.hlp/a002058232.htm&lt;/A&gt;</description>
      <pubDate>Thu, 14 Jun 2007 16:11:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3426#M1474</guid>
      <dc:creator>JackHamilton</dc:creator>
      <dc:date>2007-06-14T16:11:22Z</dc:date>
    </item>
    <item>
      <title>Re: Renaming Email Attachments</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3427#M1475</link>
      <description>Hi,&lt;BR /&gt;
  I have to admit that my mainframe days are fading into the past, but wasn't there a utility program called IEBCOPY or something that you could use? As I remember, spaces are not valid in mainframe dataset names, but it seems to me that you could use mainframe utilities to rename the file from:&lt;BR /&gt;
G741270.DATASET.NAME to LATEST.DATA.FILE&lt;BR /&gt;
 &lt;BR /&gt;
Or even better, just use the name you want in your SAS program (if you are using SAS to create G741270.DATASET.NAME ). The only way that I can think of to do it with SAS is to issue an X command that issues a TSO command to do the rename OR an X command to invoke a CLIST, but if you're doing this in batch JCL, then you might need a different approach.&lt;BR /&gt;
   &lt;BR /&gt;
This is probably a question that is best answered by Tech Support, since they are better in tune with how to do things on the mainframe these days.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 14 Jun 2007 16:13:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Renaming-Email-Attachments/m-p/3427#M1475</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-06-14T16:13:45Z</dc:date>
    </item>
  </channel>
</rss>

