<?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: WARNING: Apparent symbolic reference I_28MAY17 not resolved. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369146#M88089</link>
    <description>&lt;P&gt;Your program is asking for that macro variable, but you haven't defined it. I suspect that you really want to reference the macro varaible I but the way you wrote the filename you did not tell SAS that. When the macro variable name is followed immediately by characters like underscore, digits and letters that could be part of a valid macro variable name you need to add a period so that the macro processor knows where the name of the macro variable ends. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also does your filename really have two periods before the csv extension?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%do i=1 %to 37 %by 1;
DATA temp_&amp;amp;i;
  INFILE "/folders/myfolders/sasuser.v94/tran.&amp;amp;i._28MAY17.csv" 
    DSD delimiter=',' missover firstobs=2
  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 21 Jun 2017 13:46:39 GMT</pubDate>
    <dc:creator>Tom</dc:creator>
    <dc:date>2017-06-21T13:46:39Z</dc:date>
    <item>
      <title>WARNING: Apparent symbolic reference I_28MAY17 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369080#M88058</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting the following error message:&lt;/P&gt;&lt;DIV class="sasWarning"&gt;WARNING: Apparent symbolic reference I_28MAY17 not resolved.&lt;/DIV&gt;&lt;DIV class="sasWarning"&gt;WARNING: Apparent symbolic reference I_28MAY17 not resolved.&lt;/DIV&gt;&lt;DIV class="sasNote"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;ERROR: Physical file does not exist, /folders/myfolders/sasuser.v94/tran.&amp;amp;i_28MAY17..csv.&lt;/DIV&gt;&lt;DIV class="sasError"&gt;&amp;nbsp;&lt;/DIV&gt;&lt;DIV class="sasError"&gt;When I run the following code. &amp;nbsp;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%macro onetime;&lt;BR /&gt;%local i;&lt;BR /&gt;%do i=1 %to 37 %by 1;&lt;/P&gt;&lt;P&gt;DATA temp_&amp;amp;i;&lt;BR /&gt;INFILE "/folders/myfolders/sasuser.v94/tran.&amp;amp;i_28MAY17..csv" DSD delimiter=',' missover firstobs=2;&lt;BR /&gt;informat Date Date. Credit 8.2 Debit 8.2;&lt;BR /&gt;FORMAT Date :DATE. Credit dollar.0 Debit dollar.0;&lt;BR /&gt;INPUT&lt;BR /&gt;Account :$8.&lt;BR /&gt;Tran_Code :$4.&lt;BR /&gt;Date&lt;BR /&gt;Credit&lt;BR /&gt;Debit&lt;BR /&gt;Desc :$100.&lt;BR /&gt;;&lt;BR /&gt;RUN;&lt;BR /&gt;%end;&lt;BR /&gt;%mend onetime;&lt;BR /&gt;%onetime;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How do I fix the code?&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 09:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369080#M88058</guid>
      <dc:creator>Selli5</dc:creator>
      <dc:date>2017-06-21T09:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference I_28MAY17 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369082#M88059</link>
      <description>&lt;P&gt;This line:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INFILE "/folders/myfolders/sasuser.v94/tran.&amp;amp;i_28MAY17..csv" DSD delimiter=',' missover firstobs=2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; ^&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;At the carat here you have put the point which means the macro variable is &amp;amp;i_28MAY17. &amp;nbsp;This isn't what you wanted, maybe:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;INFILE "/folders/myfolders/sasuser.v94/tran.&amp;amp;i._28MAY17.csv" DSD delimiter=',' missover firstobs=2;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Per your other post however, if you read Reeza's advice you will see that you do not need macro at all, there are far simpler methodologies, I cut and paste the link for your reference:&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;&lt;A href="https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627" target="_blank"&gt;https://communities.sas.com/t5/SAS-Communities-Library/How-do-I-write-a-macro-to-import-multiple-text-files-that-have/ta-p/223627&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 10:01:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369082#M88059</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2017-06-21T10:01:46Z</dc:date>
    </item>
    <item>
      <title>Re: WARNING: Apparent symbolic reference I_28MAY17 not resolved.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369146#M88089</link>
      <description>&lt;P&gt;Your program is asking for that macro variable, but you haven't defined it. I suspect that you really want to reference the macro varaible I but the way you wrote the filename you did not tell SAS that. When the macro variable name is followed immediately by characters like underscore, digits and letters that could be part of a valid macro variable name you need to add a period so that the macro processor knows where the name of the macro variable ends. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also does your filename really have two periods before the csv extension?&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%do i=1 %to 37 %by 1;
DATA temp_&amp;amp;i;
  INFILE "/folders/myfolders/sasuser.v94/tran.&amp;amp;i._28MAY17.csv" 
    DSD delimiter=',' missover firstobs=2
  ;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Jun 2017 13:46:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/WARNING-Apparent-symbolic-reference-I-28MAY17-not-resolved/m-p/369146#M88089</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2017-06-21T13:46:39Z</dc:date>
    </item>
  </channel>
</rss>

