<?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: SAS macro query in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412799#M100975</link>
    <description>&lt;P&gt;Maybe you want something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET RUNDATE ='11NOV2017'D;

DATA _NULL_;
IF INTCK('DAY', &amp;amp;RUNDATE., TODAY()) GE 7 
    THEN call symputx("T1", "T1"); 
    ELSE call symputx("T1", "T2");
RUN;
 

%PUT T1=&amp;amp;T1;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 13 Nov 2017 06:11:50 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2017-11-13T06:11:50Z</dc:date>
    <item>
      <title>SAS macro query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412787#M100965</link>
      <description>&lt;P&gt;I got this error: WARNING: Apparent symbolic reference T1 not resolved.&lt;/P&gt;&lt;P&gt;May i know how to solve the below codes? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%LET RUNDATE ='11NOV2017'D;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;DATA _NULL_;&lt;BR /&gt;IF INTCK('DAY',&amp;amp;RUNDATE,TODAY()) GE 7 THEN &amp;amp;T1="T1"; ELSE &amp;amp;T1="T2";&lt;BR /&gt;RUN;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%PUT T1=&amp;amp;T1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 03:45:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412787#M100965</guid>
      <dc:creator>scb</dc:creator>
      <dc:date>2017-11-13T03:45:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412789#M100967</link>
      <description>&lt;P&gt;As you have defined RUNDATE macro variable, similarly you need to define T1&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For example&lt;/P&gt;
&lt;P&gt;%LET T1=COL1;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Nov 2017 03:50:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412789#M100967</guid>
      <dc:creator>RahulG</dc:creator>
      <dc:date>2017-11-13T03:50:18Z</dc:date>
    </item>
    <item>
      <title>Re: SAS macro query</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412799#M100975</link>
      <description>&lt;P&gt;Maybe you want something like:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;%LET RUNDATE ='11NOV2017'D;

DATA _NULL_;
IF INTCK('DAY', &amp;amp;RUNDATE., TODAY()) GE 7 
    THEN call symputx("T1", "T1"); 
    ELSE call symputx("T1", "T2");
RUN;
 

%PUT T1=&amp;amp;T1;
&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 13 Nov 2017 06:11:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-macro-query/m-p/412799#M100975</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2017-11-13T06:11:50Z</dc:date>
    </item>
  </channel>
</rss>

