<?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 Macro reference couldn't be resolved? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463031#M70432</link>
    <description>&lt;P&gt;Hi all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro code below.&amp;nbsp; I found log view showed one error while I ran the codes.&amp;nbsp; Please let me know how to fix it.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen mlogic;
%let Year=2014;
%let YY=14;
%let Table1=B02;
%let Table2=B19;
.
.
.
.
%let Table12=S408;
%let importfolder=pathway\All_US_&amp;amp;year.;

%macro import;

 %do i  = 1 %to 12;

 PROC IMPORT OUT=ACS_&amp;amp;YY._5YR_&amp;amp;&amp;amp;TABLE&amp;amp;i 
            DATAFILE= "&amp;amp;importfolder.\ACS_&amp;amp;YY._5YR_&amp;amp;&amp;amp;TABLE&amp;amp;i._with_ann.csv" 
            DBMS=CSV REPLACE;
     		GETNAMES=YES;
     		DATAROW=2; 
		GUESSINGROWS=MAX;
RUN;
 
%end; 

%mend;

%import;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message is shown below.&lt;/P&gt;
&lt;P&gt;MLOGIC(IMPORT): Beginning execution.&lt;/P&gt;
&lt;P&gt;MLOGIC(IMPORT): %DO loop beginning; index variable I; start value is 1; stop value is 2; by&lt;/P&gt;
&lt;P&gt;value is 1.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable YY resolves to 14&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable TABLE1 resolves to B02001&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable IMPORTFOLDER resolves to&lt;/P&gt;
&lt;P&gt;Pathway\All_US_2014&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable YY resolves to 14&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;
&lt;P&gt;WARNING: Apparent symbolic reference TABLE1_WITH_ANN not resolved.&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): PROC IMPORT OUT=ACS_14_5YR_B02001 DATAFILE=&lt;/P&gt;
&lt;P&gt;"Pathway\All_US_2014\ACS_14_5YR_&amp;amp;TABLE1_with_ann.csv" DBMS=CSV REPLACE;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): ADLM;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): GETNAMES=YES;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): DATAROW=2;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): GUESSINGROWS=MAX;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): RUN;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, pathway\All_US_2014\ACS_14_5YR_&amp;amp;TABLE1_with_ann.csv.&lt;/P&gt;
&lt;P&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 17 May 2018 15:05:42 GMT</pubDate>
    <dc:creator>ybz12003</dc:creator>
    <dc:date>2018-05-17T15:05:42Z</dc:date>
    <item>
      <title>Macro reference couldn't be resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463031#M70432</link>
      <description>&lt;P&gt;Hi all:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro code below.&amp;nbsp; I found log view showed one error while I ran the codes.&amp;nbsp; Please let me know how to fix it.&amp;nbsp; Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;options mprint symbolgen mlogic;
%let Year=2014;
%let YY=14;
%let Table1=B02;
%let Table2=B19;
.
.
.
.
%let Table12=S408;
%let importfolder=pathway\All_US_&amp;amp;year.;

%macro import;

 %do i  = 1 %to 12;

 PROC IMPORT OUT=ACS_&amp;amp;YY._5YR_&amp;amp;&amp;amp;TABLE&amp;amp;i 
            DATAFILE= "&amp;amp;importfolder.\ACS_&amp;amp;YY._5YR_&amp;amp;&amp;amp;TABLE&amp;amp;i._with_ann.csv" 
            DBMS=CSV REPLACE;
     		GETNAMES=YES;
     		DATAROW=2; 
		GUESSINGROWS=MAX;
RUN;
 
%end; 

%mend;

%import;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The error message is shown below.&lt;/P&gt;
&lt;P&gt;MLOGIC(IMPORT): Beginning execution.&lt;/P&gt;
&lt;P&gt;MLOGIC(IMPORT): %DO loop beginning; index variable I; start value is 1; stop value is 2; by&lt;/P&gt;
&lt;P&gt;value is 1.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable YY resolves to 14&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable TABLE1 resolves to B02001&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable IMPORTFOLDER resolves to&lt;/P&gt;
&lt;P&gt;Pathway\All_US_2014&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable YY resolves to 14&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: &amp;amp;&amp;amp; resolves to &amp;amp;.&lt;/P&gt;
&lt;P&gt;SYMBOLGEN: Macro variable I resolves to 1&lt;/P&gt;
&lt;P&gt;WARNING: Apparent symbolic reference TABLE1_WITH_ANN not resolved.&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): PROC IMPORT OUT=ACS_14_5YR_B02001 DATAFILE=&lt;/P&gt;
&lt;P&gt;"Pathway\All_US_2014\ACS_14_5YR_&amp;amp;TABLE1_with_ann.csv" DBMS=CSV REPLACE;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): ADLM;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): GETNAMES=YES;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): DATAROW=2;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): GUESSINGROWS=MAX;&lt;/P&gt;
&lt;P&gt;MPRINT(IMPORT): RUN;&lt;/P&gt;
&lt;P&gt;ERROR: Physical file does not exist, pathway\All_US_2014\ACS_14_5YR_&amp;amp;TABLE1_with_ann.csv.&lt;/P&gt;
&lt;P&gt;ERROR: Import unsuccessful. See SAS Log for details.&lt;/P&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 15:05:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463031#M70432</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-05-17T15:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Macro reference couldn't be resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463037#M70434</link>
      <description>&lt;P&gt;This is the fix&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;DATAFILE= "&amp;amp;importfolder.\ACS_&amp;amp;YY._5YR_&amp;amp;&amp;amp;TABLE&amp;amp;i.._with_ann.csv" 
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;You need two dots after &amp;amp;&amp;amp;TABLE&amp;amp;I in order to indicate the end of the macro variable name and the beginning of extra non-macro text.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 15:12:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463037#M70434</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-05-17T15:12:31Z</dc:date>
    </item>
    <item>
      <title>Re: Macro reference couldn't be resolved?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463041#M70435</link>
      <description>&lt;P&gt;Thanks much!&amp;nbsp; I got it worked!&lt;/P&gt;</description>
      <pubDate>Thu, 17 May 2018 15:32:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Macro-reference-couldn-t-be-resolved/m-p/463041#M70435</guid>
      <dc:creator>ybz12003</dc:creator>
      <dc:date>2018-05-17T15:32:11Z</dc:date>
    </item>
  </channel>
</rss>

