<?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: macro variables in location in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210001#M52006</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro variables need double quotes to resolve, they won't resolve in single quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Jul 2015 14:40:45 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2015-07-23T14:40:45Z</dc:date>
    <item>
      <title>macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/209999#M52004</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I have a filename defined in my dataset:&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;filename cm&amp;nbsp; 'k:\may 2015\cm.txt'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and in another program the month and year are defined as:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%let month = may;&lt;/P&gt;&lt;P&gt;%let year = 2015;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when I used the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;filename cm&amp;nbsp; 'k:\&amp;amp;month. &amp;amp;year.\cm.txt'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't work&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:29:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/209999#M52004</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-07-23T14:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210000#M52005</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What does the log say?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:36:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210000#M52005</guid>
      <dc:creator>Steelers_In_DC</dc:creator>
      <dc:date>2015-07-23T14:36:01Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210001#M52006</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Macro variables need double quotes to resolve, they won't resolve in single quotes&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 14:40:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210001#M52006</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-23T14:40:45Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210002#M52007</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Log says...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Physical file does not exist,&lt;/P&gt;&lt;P&gt;'k:\&amp;amp;month. &amp;amp;year.\cm.txt'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't work with double quotations either.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 15:52:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210002#M52007</guid>
      <dc:creator>brophymj</dc:creator>
      <dc:date>2015-07-23T15:52:40Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210003#M52008</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the following line to see what the macro variables are resolving to, also, make sure that the file actually exists &lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt;&lt;/P&gt;&lt;P&gt;Options symbolgen mprint;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If that doesn't work, post your full code and log.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 16:37:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210003#M52008</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-07-23T16:37:36Z</dc:date>
    </item>
    <item>
      <title>Re: macro variables in location</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210004#M52009</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. As previously mentioned, use double quotes not single.&lt;/P&gt;&lt;P&gt;2. Is your SAS session possibly running on a server that can't see your K: drive?&lt;/P&gt;&lt;P&gt;3. Could the macro variables be local when they're created, not global? In the program that's failing, put in the line&lt;/P&gt;&lt;P&gt;%put &amp;amp;month &amp;amp;year;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 12pt; font-family: Courier New;"&gt;to see if the variables have values.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Jul 2015 18:38:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/macro-variables-in-location/m-p/210004#M52009</guid>
      <dc:creator>TomKari</dc:creator>
      <dc:date>2015-07-23T18:38:34Z</dc:date>
    </item>
  </channel>
</rss>

