<?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 Export to Excel -- dynamic file name in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51651#M14170</link>
    <description>Hi -- has anyone exported to Excel using a dynamic, variable filename? I have a global variable with value assigned by a "%let" statement that I want to set to the Excel file name that I'm exporting to. I've seen DDE documentation and a macro called %exporttoXL, but I'm not sure that extent is needed or whether either approach will suit my simple need here. THanks for any tips!</description>
    <pubDate>Mon, 06 Jul 2009 16:48:59 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2009-07-06T16:48:59Z</dc:date>
    <item>
      <title>Export to Excel -- dynamic file name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51651#M14170</link>
      <description>Hi -- has anyone exported to Excel using a dynamic, variable filename? I have a global variable with value assigned by a "%let" statement that I want to set to the Excel file name that I'm exporting to. I've seen DDE documentation and a macro called %exporttoXL, but I'm not sure that extent is needed or whether either approach will suit my simple need here. THanks for any tips!</description>
      <pubDate>Mon, 06 Jul 2009 16:48:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51651#M14170</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-06T16:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel -- dynamic file name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51652#M14171</link>
      <description>Please explain more about what determines the "dynamic, variable filename"?  Also, have you considered PROC EXPORT and using the macro variable approach to resolve the PC file name in a prior DATA step or PROC SQL (again, your advance SAS processing component has not been stated/identified at this point).&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
PROC EXPORT Statement&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003102702.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/acpcref/61891/HTML/default/a003102702.htm&lt;/A&gt;</description>
      <pubDate>Tue, 07 Jul 2009 12:48:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51652#M14171</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-07-07T12:48:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel -- dynamic file name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51653#M14172</link>
      <description>Hi -- I'm on v 9. Your suggestion about using a macro is something I had tried, except I was using a constant string value concatenated with a macro variable for the file name. Instead, I will try putting everything including the constant string in the macro variable rather than trying to do the concatenation. Thanks</description>
      <pubDate>Wed, 08 Jul 2009 18:15:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51653#M14172</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-07-08T18:15:23Z</dc:date>
    </item>
    <item>
      <title>Re: Export to Excel -- dynamic file name</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51654#M14173</link>
      <description>Hi:&lt;BR /&gt;
  You can concatenate a constant string with macro variables. Consider the LOG view of some %LET statements and the resulting %PUT output. You just have to remember the rules of how to concatenate and reference macro variables.&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001071889.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001071889.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001071915.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/mcrolref/61885/HTML/default/a001071915.htm&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug03/bt/bt009.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug03/bt/bt009.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://www2.sas.com/proceedings/sugi28/056-28.pdf" target="_blank"&gt;http://www2.sas.com/proceedings/sugi28/056-28.pdf&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
SAS LOG:&lt;BR /&gt;
453  %let path= c:\temp;&lt;BR /&gt;
454  %let name= fred;&lt;BR /&gt;
455  %let ext = xls;&lt;BR /&gt;
456&lt;BR /&gt;
457  %let pathfile=&amp;amp;path\&amp;amp;name;&lt;BR /&gt;
458  %let pne = &amp;amp;path\&amp;amp;name..&amp;amp;ext;&lt;BR /&gt;
459  %let othr = &amp;amp;path\fixed\part\&amp;amp;name..&amp;amp;ext;&lt;BR /&gt;
460&lt;BR /&gt;
461  %put path is: &amp;amp;path;&lt;BR /&gt;
path is: c:\temp&lt;BR /&gt;
462&lt;BR /&gt;
463  %put name is: &amp;amp;name;&lt;BR /&gt;
name is: fred&lt;BR /&gt;
464&lt;BR /&gt;
465  %put ext is: &amp;amp;ext;&lt;BR /&gt;
ext is: xls&lt;BR /&gt;
466&lt;BR /&gt;
467  %put pathfile is: &amp;amp;pathfile;&lt;BR /&gt;
pathfile is: c:\temp\fred&lt;BR /&gt;
468&lt;BR /&gt;
469  %put pne is: &amp;amp;pne;&lt;BR /&gt;
pne is: c:\temp\fred.xls&lt;BR /&gt;
470&lt;BR /&gt;
471  %put othr is: &amp;amp;othr;&lt;BR /&gt;
othr is: c:\temp\fixed\part\fred.xls&lt;BR /&gt;
&lt;BR /&gt;
[/pre]</description>
      <pubDate>Wed, 08 Jul 2009 18:59:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Export-to-Excel-dynamic-file-name/m-p/51654#M14173</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-07-08T18:59:19Z</dc:date>
    </item>
  </channel>
</rss>

