<?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: creating multiple macro variables in SAS Enterprise Guide</title>
    <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238600#M17179</link>
    <description>&lt;P&gt;I have one sas dataset wich has last 1 yr history data in it and it used to gets update on daily bases. some times we miss some date data in it. so i want to know which date has missed in b/w.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to do that i am&amp;nbsp;thinking to create macro variable everyday for last 1 year and check against distinct date from that history dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Dec 2015 22:20:33 GMT</pubDate>
    <dc:creator>woo</dc:creator>
    <dc:date>2015-12-09T22:20:33Z</dc:date>
    <item>
      <title>creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238573#M17170</link>
      <description>&lt;P&gt;Hello, can someone please help me to create macro variables for dates (in format 09Dec15) from today-2 to last year same date?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so like i want to create macro variable&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;date1&lt;/STRONG&gt; which would resolve to &lt;STRONG&gt;07Dec14&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;date2=08Dec14&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;date3=09Dec14&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;date366=07Dec15&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you....&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:18:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238573#M17170</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-12-09T20:18:37Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238574#M17171</link>
      <description>&lt;P&gt;This does what you've asked.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data _null_;
   start = '07DEC2014'd;
   do date=start to (intnx('year',Start,-1,'Same') ) by -1;
      name=cats('date',start-date+1);
      call symputx(name,put(date,date7.));
   end;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2015 20:29:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238574#M17171</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-09T20:29:08Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238584#M17172</link>
      <description>&lt;P&gt;Thank You Ballardw, but not sure how it creartes 366 macro variables, &lt;STRONG&gt;date1 to date366&lt;/STRONG&gt;, which would resolves to &lt;STRONG&gt;07dec14 to 07dec15.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, i want to create this everyday, so tomorrow, 366 macro variables, &lt;STRONG&gt;date1 to date366&lt;/STRONG&gt;, supposed to resolve to &lt;STRONG&gt;08dec14 to 08dec15&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;thanks for your time....&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 21:24:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238584#M17172</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-12-09T21:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238597#M17178</link>
      <description>&lt;P&gt;I question what you're doing downstream with this, I feel that there's likely a better way.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can adjust&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13884"&gt;@ballardw﻿&lt;/a&gt;&amp;nbsp;code by changing the start to&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;start=today();&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:01:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238597#M17178</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-12-09T22:01:42Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238600#M17179</link>
      <description>&lt;P&gt;I have one sas dataset wich has last 1 yr history data in it and it used to gets update on daily bases. some times we miss some date data in it. so i want to know which date has missed in b/w.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;to do that i am&amp;nbsp;thinking to create macro variable everyday for last 1 year and check against distinct date from that history dataset.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Dec 2015 22:20:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238600#M17179</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-12-09T22:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238605#M17180</link>
      <description>&lt;P&gt;For that comparison you do not need any macro variables, just a data set with the target dates and then compare.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data basedates;
   start = '07DEC2014'd;
   do date=start to (intnx('year',Start,-1,'Same') ) by -1;
      output;
   end;
   drop start;
   format date date9.;
run;

proc sql;
   title "Dates in base not occurring in comparison set";
   select date from basedates
   except
   select distinct date from comparison;
quit;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 09 Dec 2015 23:03:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238605#M17180</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-12-09T23:03:16Z</dc:date>
    </item>
    <item>
      <title>Re: creating multiple macro variables</title>
      <link>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238943#M17195</link>
      <description>&lt;P&gt;Thanks Ballardw and Reeza....&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2015 17:05:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Enterprise-Guide/creating-multiple-macro-variables/m-p/238943#M17195</guid>
      <dc:creator>woo</dc:creator>
      <dc:date>2015-12-11T17:05:37Z</dc:date>
    </item>
  </channel>
</rss>

