<?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 Help with Macro data creation for SQL in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169788#M264154</link>
    <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro as follow:&lt;/P&gt;
&lt;P&gt;%macro myproblem (X=);&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;data final_&amp;amp;X; set ....;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;% myproblem(X=1);&lt;/P&gt;
&lt;P&gt;% myproblem(X=2);&lt;/P&gt;
&lt;P&gt;% myproblem(X=3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;of course after running that macro, I have final_1, final_2, final_3.&lt;/P&gt;
&lt;P&gt;I want to create a data file call FINAL that is the combination of the above 3 files based on SQL like:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table FINAL as select * from final_1 full join final_2 on final_1.name=final_2.name; quit;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table FINAL as select * from FINAL full join final_3 on final_1.name=final_2.name; quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder how can I "include" that sql section in the MAcro so it will do the combination anytime new file final_i is created.&lt;/P&gt;
&lt;P&gt;The critical point is that I have nothing to start with at the first iteration (X=1) to do the SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is very much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------------&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt; %if ( &amp;amp;RR=5 and &amp;amp;sl_code=0 )&lt;/FONT&gt; %then %do;&lt;BR /&gt; data single_factor_Buy_f; set single_factor_Buy;run;&lt;BR /&gt; %end;&lt;BR /&gt; %else %do;&lt;BR /&gt; proc sql;&lt;BR /&gt; create table single_factor_Buy_f&lt;BR /&gt; as select * from single_factor_Buy_f as a left join single_factor_Buy as b&lt;BR /&gt; on a.a_name = b.a_name and a.a_value = b.a_value; quit;&lt;BR /&gt; %end;&lt;/P&gt;</description>
    <pubDate>Fri, 27 Jan 2017 16:18:30 GMT</pubDate>
    <dc:creator>hhchenfx</dc:creator>
    <dc:date>2017-01-27T16:18:30Z</dc:date>
    <item>
      <title>Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169788#M264154</link>
      <description>&lt;P&gt;Hi Everyone,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have a macro as follow:&lt;/P&gt;
&lt;P&gt;%macro myproblem (X=);&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;data final_&amp;amp;X; set ....;&lt;/P&gt;
&lt;P&gt;%mend;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;% myproblem(X=1);&lt;/P&gt;
&lt;P&gt;% myproblem(X=2);&lt;/P&gt;
&lt;P&gt;% myproblem(X=3);&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;of course after running that macro, I have final_1, final_2, final_3.&lt;/P&gt;
&lt;P&gt;I want to create a data file call FINAL that is the combination of the above 3 files based on SQL like:&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table FINAL as select * from final_1 full join final_2 on final_1.name=final_2.name; quit;&lt;/P&gt;
&lt;P&gt;proc sql;&lt;/P&gt;
&lt;P&gt;create table FINAL as select * from FINAL full join final_3 on final_1.name=final_2.name; quit;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder how can I "include" that sql section in the MAcro so it will do the combination anytime new file final_i is created.&lt;/P&gt;
&lt;P&gt;The critical point is that I have nothing to start with at the first iteration (X=1) to do the SQL.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help is very much appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Have a nice weekend.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;HHC&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-----------------&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt; %if ( &amp;amp;RR=5 and &amp;amp;sl_code=0 )&lt;/FONT&gt; %then %do;&lt;BR /&gt; data single_factor_Buy_f; set single_factor_Buy;run;&lt;BR /&gt; %end;&lt;BR /&gt; %else %do;&lt;BR /&gt; proc sql;&lt;BR /&gt; create table single_factor_Buy_f&lt;BR /&gt; as select * from single_factor_Buy_f as a left join single_factor_Buy as b&lt;BR /&gt; on a.a_name = b.a_name and a.a_value = b.a_value; quit;&lt;BR /&gt; %end;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Jan 2017 16:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169788#M264154</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2017-01-27T16:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169789#M264155</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%macro&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; myproblem (X=);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;data final_&amp;amp;X; set &lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;....&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;proc sql ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; &amp;amp;x=&lt;/SPAN&gt;&lt;SPAN style="color: teal; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;1&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; create table final as select * from final_&amp;amp;x ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%else&lt;/SPAN&gt; &lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; create table final as &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select * &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from final a full join final_&amp;amp;x b&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.name = b.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: blue; background: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;quit ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-size: 10.0pt; font-family: 'Courier New';"&gt;&lt;STRONG&gt;%mend&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt; myproblem;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;Or to make it more general you might trigger on FINAL not existing instead of the value of &amp;amp;X.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: white;"&gt;%if&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt; not %sysfunc(exist(final))&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: white;"&gt;%then&lt;/SPAN&gt; &lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: white;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt;&amp;nbsp; data final;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; set final_&amp;amp;x (obs=0 keep=name); &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt;&amp;nbsp; run;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: 0.0001pt;"&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: blue; background-color: white;"&gt;%end&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; font-family: 'Courier New'; color: black; background-color: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;proc sql ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; create table final as&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select *&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; from final a full join final_&amp;amp;x b&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; on a.name = b.name&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-size: 10.0pt; font-family: 'Courier New'; color: black; background: white;"&gt;quit;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 03:27:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169789#M264155</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-05T03:27:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169790#M264156</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you so much, Tom.&lt;/P&gt;&lt;P&gt;I like the first method since I also tried it but failed since I don't know how to use the %if.&lt;/P&gt;&lt;P&gt;HHC&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 15:02:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169790#M264156</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2014-04-05T15:02:56Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169791#M264157</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Tom,&lt;/P&gt;&lt;P&gt;If X= character instead of number, should I make any change since the following is not working as the column name all turn in to missing value.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;%if&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt; &amp;amp;x='abc'&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;%then&lt;/SPAN&gt; &lt;SPAN style="background: white; color: blue; font-family: 'Courier New'; font-size: 10pt;"&gt;%do&lt;/SPAN&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;Thank you,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background: white; color: black; font-family: 'Courier New'; font-size: 10pt;"&gt;HHC&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 15:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169791#M264157</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2014-04-05T15:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169792#M264158</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what you mean about missing values as there are no variables referenced in the code snippets.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To macro code everything is character so do NOT include the quotes unless they are actually part of the string. &lt;/P&gt;&lt;P&gt;So if you want to test if the value of macro variable X is the character string abc you would write %IF (&amp;amp;X=abc) %THEN .....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also I am not sure if the join step you are doing in SQL is what you want to do, but would need to know more about the data to advise.&amp;nbsp; If you just want to append the new records to the bottom of the file then use PROC APPEND.&amp;nbsp; If you want to merge on new columns (append on the right) then I would recommend a data step MERGE instead of an SQL join.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 15:55:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169792#M264158</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2014-04-05T15:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Macro data creation for SQL</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169793#M264159</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks, Tom.&lt;/P&gt;&lt;P&gt;You are right. I should use merge in this case since it is only 1-to-1 matching.&lt;/P&gt;&lt;P&gt;Also the (%IF=abc) works perfectly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;HHC&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2014 16:59:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Help-with-Macro-data-creation-for-SQL/m-p/169793#M264159</guid>
      <dc:creator>hhchenfx</dc:creator>
      <dc:date>2014-04-05T16:59:33Z</dc:date>
    </item>
  </channel>
</rss>

