<?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 var not resolved in filenam in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449142#M29059</link>
    <description>&lt;P&gt;You defined a FILENAME, but you haven't done anything with it yet.&lt;/P&gt;
&lt;P&gt;Were you going to try to read that file? Or write to it?&lt;/P&gt;</description>
    <pubDate>Tue, 27 Mar 2018 20:00:49 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2018-03-27T20:00:49Z</dc:date>
    <item>
      <title>macro var not resolved in filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449069#M29054</link>
      <description>&lt;P&gt;Hi all.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;***********************UPDATED LOG****************************&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to read monthly CSV files into SAS each month. But the macro is not readable in filename statement. Please take a look at the code to see what I am missing.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;tday = INTNX('month',today(),-2,'B');&lt;BR /&gt;CALL SYMPUT('chknm',PUT(tday,monyy5.));&lt;BR /&gt;RUN;&lt;BR /&gt;%put &amp;amp;chknm.;&lt;BR /&gt;&lt;BR /&gt;filename btv1 FTP "/CustomerDelivery/btv/&amp;amp;chknm.._chk2.csv"&lt;BR /&gt;host = "&amp;amp;nthost"&lt;BR /&gt;user = "&amp;amp;ntid"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;And this is the LOG from the code above...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;21 %put &amp;amp;chknm.;&lt;BR /&gt;JAN18&lt;BR /&gt;22&lt;BR /&gt;&lt;STRONG&gt;23 filename btv1 FTP "/CustomerDelivery/btv/&amp;amp;chknm.._chk2.csv"&lt;/STRONG&gt;&lt;BR /&gt;24 host = "&amp;amp;nthost"&lt;BR /&gt;25 user = "&amp;amp;ntid"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449069#M29054</guid>
      <dc:creator>jkim1012</dc:creator>
      <dc:date>2018-03-27T17:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: macro var not resolved in filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449073#M29055</link>
      <description>&lt;P&gt;So, Which did you submit:&lt;/P&gt;
&lt;P&gt;filename btv1 FTP "/CustomerDelivery/btv&lt;FONT color="#ff0000" size="5"&gt;&lt;STRONG&gt;/&lt;/STRONG&gt;&lt;/FONT&gt;&amp;amp;chknm.._chk2.csv"&lt;/P&gt;
&lt;P&gt;or (from log)&lt;/P&gt;
&lt;P&gt;filename btv1 FTP "/CustomerDelivery/btv&amp;amp;chknm.._chk2.csv"&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;one of these is not like the other. A missing / would be very critical in finding the file.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Your log is incomplete as you do not show the end of the filename statement or any message about success or failure.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you want to see the resolved values use&lt;/P&gt;
&lt;P&gt;Options mprint;&lt;/P&gt;
&lt;P&gt;before the code and then&lt;/P&gt;
&lt;P&gt;Options nomprint;&lt;/P&gt;
&lt;P&gt;to stop the resolution in the log.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:34:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449073#M29055</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2018-03-27T17:34:35Z</dc:date>
    </item>
    <item>
      <title>Re: macro var not resolved in filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449075#M29056</link>
      <description>&lt;P&gt;Updated the log. it was with "/"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;18 DATA _NULL_;&lt;BR /&gt;19 tday = INTNX('month',today(),-2,'B');&lt;BR /&gt;20 CALL SYMPUT('chknm',PUT(tday,monyy5.));&lt;BR /&gt;21 RUN;&lt;/P&gt;&lt;P&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.06 seconds&lt;BR /&gt;user cpu time 0.01 seconds&lt;BR /&gt;system cpu time 0.01 seconds&lt;BR /&gt;memory 738.15k&lt;BR /&gt;OS Memory 19616.00k&lt;BR /&gt;Timestamp 03/27/2018 01:42:05 PM&lt;BR /&gt;Step Count 12 Switch Count 30&lt;BR /&gt;Page Faults 0&lt;BR /&gt;Page Reclaims 133&lt;BR /&gt;Page Swaps 0&lt;BR /&gt;Voluntary Context Switches 111&lt;BR /&gt;Involuntary Context Switches 21&lt;BR /&gt;Block Input Operations 0&lt;BR /&gt;Block Output Operations 0&lt;/P&gt;&lt;P&gt;22 %put &amp;amp;chknm.;&lt;BR /&gt;JAN18&lt;BR /&gt;23&lt;BR /&gt;24 filename btv1 FTP "/CustomerDelivery/btv/&amp;amp;chknm.._chk2.csv"&lt;BR /&gt;25 host = "&amp;amp;nthost"&lt;BR /&gt;26 user = "&amp;amp;ntid"&lt;BR /&gt;27 pass = "&amp;amp;ntpwd"&lt;BR /&gt;28 WAIT_MILLISECONDS=1000000;&lt;BR /&gt;29&lt;BR /&gt;30 Options nomprint;&lt;BR /&gt;31&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 17:42:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449075#M29056</guid>
      <dc:creator>jkim1012</dc:creator>
      <dc:date>2018-03-27T17:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: macro var not resolved in filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449142#M29059</link>
      <description>&lt;P&gt;You defined a FILENAME, but you haven't done anything with it yet.&lt;/P&gt;
&lt;P&gt;Were you going to try to read that file? Or write to it?&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 20:00:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449142#M29059</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-03-27T20:00:49Z</dc:date>
    </item>
    <item>
      <title>Re: macro var not resolved in filenam</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449211#M29063</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/178918"&gt;@jkim1012&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;Additionally to what &lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/159"&gt;@Tom&lt;/a&gt;&amp;nbsp;wrote: Why are there two dots after &amp;amp;chknm. Is the filename you're after really &lt;EM&gt;JAN18&lt;FONT color="#ff0000" size="7"&gt;.&lt;/FONT&gt;_chk2.csv&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;22 %put &amp;amp;chknm.;
JAN18
23
24 filename btv1 FTP "/CustomerDelivery/btv/&amp;amp;chknm.._chk2.csv"&lt;/PRE&gt;</description>
      <pubDate>Wed, 28 Mar 2018 03:25:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/macro-var-not-resolved-in-filenam/m-p/449211#M29063</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-28T03:25:28Z</dc:date>
    </item>
  </channel>
</rss>

