<?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: Creating Export Name from Variables? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697682#M213257</link>
    <description>&lt;P&gt;Thank you for your responses.&amp;nbsp; Previously, when I wasn't "building from variables", the Excel file would just open up with the name I had created i.e. DAD_DQ_Inst5555.xlsx.&amp;nbsp; But now that I am building the file name from variables I get an error message that "physical file does not exist".&amp;nbsp; Why would that be and how do I correct it?&amp;nbsp; &amp;nbsp;Thanks.&lt;/P&gt;</description>
    <pubDate>Mon, 09 Nov 2020 18:19:26 GMT</pubDate>
    <dc:creator>shellp55</dc:creator>
    <dc:date>2020-11-09T18:19:26Z</dc:date>
    <item>
      <title>Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697674#M213250</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I currently set the value of a file name as %let export_db="E:\data\2020 21\Q2\inst5555.xlsx";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I can set the institution variable as %let export_db="E:\data\2020 21\Q2\inst_&amp;amp;dqInst..xlsx" (where dqinst is set separately) and it works.&amp;nbsp; But I have many different institutions at various periods in their data&amp;nbsp;and I would like to&amp;nbsp;create variables for fiscal year and quarter so I don't have to change all the time but how do I put it together?&amp;nbsp;&amp;nbsp; For example, below doesn't work:&lt;/P&gt;
&lt;P&gt;"E:\data\"||&amp;amp;fiscal||"\"||&amp;amp;qtr||"\"||"DAD DQ_&amp;amp;DQInst..xlsx"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any and all help greatly appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:35:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697674#M213250</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2020-11-09T17:35:28Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697676#M213252</link>
      <description>"E:\data\&amp;amp;fiscal.\&amp;amp;qtr.\DAD DQ_&amp;amp;DQInst..xlsx"&lt;BR /&gt;&lt;BR /&gt;Expand on your original solution - no need to concatenate manually.</description>
      <pubDate>Mon, 09 Nov 2020 17:47:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697676#M213252</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-09T17:47:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697677#M213253</link>
      <description>&lt;P&gt;You don't need || to concatenate macro variables and text. Try this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;"E:\data\&amp;amp;fiscal\&amp;amp;qtr\DAD DQ_&amp;amp;DQInst..xlsx"&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 17:49:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697677#M213253</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2020-11-09T17:49:30Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697682#M213257</link>
      <description>&lt;P&gt;Thank you for your responses.&amp;nbsp; Previously, when I wasn't "building from variables", the Excel file would just open up with the name I had created i.e. DAD_DQ_Inst5555.xlsx.&amp;nbsp; But now that I am building the file name from variables I get an error message that "physical file does not exist".&amp;nbsp; Why would that be and how do I correct it?&amp;nbsp; &amp;nbsp;Thanks.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:19:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697682#M213257</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2020-11-09T18:19:26Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697686#M213261</link>
      <description>Double check how the full file path is resolving. I'm guessing it's adding some additional spaces somewhere so the file path doesn't end up matching exactly. &lt;BR /&gt;&lt;BR /&gt;Run the code with the MPRINT option on and show us the actual error if you cannot resolve it.</description>
      <pubDate>Mon, 09 Nov 2020 18:31:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697686#M213261</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2020-11-09T18:31:50Z</dc:date>
    </item>
    <item>
      <title>Re: Creating Export Name from Variables?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697687#M213262</link>
      <description>&lt;P&gt;You are correct, Reeza, I was missing a subfolder in the name.&amp;nbsp; Now it works and all is well.&amp;nbsp; Thanks very much.&lt;/P&gt;</description>
      <pubDate>Mon, 09 Nov 2020 18:34:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Creating-Export-Name-from-Variables/m-p/697687#M213262</guid>
      <dc:creator>shellp55</dc:creator>
      <dc:date>2020-11-09T18:34:38Z</dc:date>
    </item>
  </channel>
</rss>

