<?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: use DDE save excel file and give the file a name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80019#M23016</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried "save as" didn't work,but as your advice use "save.as" will works !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 01 Aug 2012 13:11:39 GMT</pubDate>
    <dc:creator>Mike_Davis</dc:creator>
    <dc:date>2012-08-01T13:11:39Z</dc:date>
    <item>
      <title>use DDE save excel file and give the file a name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80017#M23014</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I use DDE to create and save an excel file,the default name is book1 and location is c:\My Document.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could anyone telll me how to change the name and change the location?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename cmds dde 'excel|system';&lt;/P&gt;&lt;P&gt;data _null_;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; file cmds;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put '[SELECT("R1C1:R20C3")]';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put '[SORT(1,"R1C1",1)]';&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put '[SAVE()]'; /*&amp;nbsp; This will save the new excel file to an excel file named&amp;nbsp; "book1.xls",I want the saved file 's name is myfile.xls*/&lt;BR /&gt;&amp;nbsp;&amp;nbsp; put '[QUIT()]';&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 20:18:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80017#M23014</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-07-31T20:18:33Z</dc:date>
    </item>
    <item>
      <title>Re: use DDE save excel file and give the file a name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80018#M23015</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you tried changing your put save statement to something like?:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;put '[save.as ("c:\OtherFolder\DifferentFileName.xls")]';&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Jul 2012 20:25:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80018#M23015</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-07-31T20:25:31Z</dc:date>
    </item>
    <item>
      <title>Re: use DDE save excel file and give the file a name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80019#M23016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Art!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried "save as" didn't work,but as your advice use "save.as" will works !&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Aug 2012 13:11:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/use-DDE-save-excel-file-and-give-the-file-a-name/m-p/80019#M23016</guid>
      <dc:creator>Mike_Davis</dc:creator>
      <dc:date>2012-08-01T13:11:39Z</dc:date>
    </item>
  </channel>
</rss>

