<?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 Can't get macro to work in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218141#M40195</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some trouble with this macro and would appreciate another set of eyes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create an excel workbook where every sheet is data from my &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Emp_History1 table equal to the dates in my &lt;SPAN style="font-size: 13.3333330154419px;"&gt;PERIOD_DT table. I'm not getting any errors when this runs but it's not doing what i would expect. &lt;/SPAN&gt;&lt;/SPAN&gt;Appreciate any help, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select min(PERIOD_DT) format = date9. into: min_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; from Zwork.period_Dates; &lt;/P&gt;&lt;P&gt;&amp;nbsp; quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select max(PERIOD_DT)format = date9. into: max_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; from Zwork.period_Dates; &lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options mlogic mprint;&lt;/P&gt;&lt;P&gt;%macro test (first=&amp;amp;min_date, last=&amp;amp;max_date);&lt;/P&gt;&lt;P&gt;%do date = &amp;amp;first %to &amp;amp;last;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;set zwork.Emp_History1; &lt;/P&gt;&lt;P&gt;if PERIOD_DT in (&amp;amp;date); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data = work.table_&amp;amp;date&lt;/P&gt;&lt;P&gt;outfile = "W:\_TD9756_WAPPRIB00001040_\test.xlsx"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL replace; &lt;/P&gt;&lt;P&gt;sheet = table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 14:34:12 GMT</pubDate>
    <dc:creator>Ody</dc:creator>
    <dc:date>2015-04-09T14:34:12Z</dc:date>
    <item>
      <title>Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218141#M40195</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm having some trouble with this macro and would appreciate another set of eyes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm trying to create an excel workbook where every sheet is data from my &lt;SPAN style="font-size: 13.3333330154419px;"&gt;Emp_History1 table equal to the dates in my &lt;SPAN style="font-size: 13.3333330154419px;"&gt;PERIOD_DT table. I'm not getting any errors when this runs but it's not doing what i would expect. &lt;/SPAN&gt;&lt;/SPAN&gt;Appreciate any help, thanks. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select min(PERIOD_DT) format = date9. into: min_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; from Zwork.period_Dates; &lt;/P&gt;&lt;P&gt;&amp;nbsp; quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select max(PERIOD_DT)format = date9. into: max_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; from Zwork.period_Dates; &lt;/P&gt;&lt;P&gt;&amp;nbsp; quit;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options mlogic mprint;&lt;/P&gt;&lt;P&gt;%macro test (first=&amp;amp;min_date, last=&amp;amp;max_date);&lt;/P&gt;&lt;P&gt;%do date = &amp;amp;first %to &amp;amp;last;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;set zwork.Emp_History1; &lt;/P&gt;&lt;P&gt;if PERIOD_DT in (&amp;amp;date); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data = work.table_&amp;amp;date&lt;/P&gt;&lt;P&gt;outfile = "W:\_TD9756_WAPPRIB00001040_\test.xlsx"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL replace; &lt;/P&gt;&lt;P&gt;sheet = table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:34:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218141#M40195</guid>
      <dc:creator>Ody</dc:creator>
      <dc:date>2015-04-09T14:34:12Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218142#M40196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If PERIOD_DT is a SAS date valued variable, which is implied by your use of the date9. format, your comparison of&lt;/P&gt;&lt;P&gt;if PERIOD_DT in (&amp;amp;date); is failing as &amp;amp;date resolves to something like 01Jan2015 NOT "01Jan2015"d;&lt;/P&gt;&lt;P&gt;use&lt;/P&gt;&lt;P&gt;if PERIOD_DT in ("&amp;amp;date"d);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also build both the min and max in a single pass.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 14:41:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218142#M40196</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-09T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218143#M40197</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Something like (note not tested):&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp; create table TEMP as&lt;/P&gt;&lt;P&gt;&amp;nbsp; select&amp;nbsp; MIN(PERIOD_DT) as MN,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MAX(PERIOD_DT) as MX&lt;/P&gt;&lt;P&gt;&amp;nbsp; from&amp;nbsp;&amp;nbsp;&amp;nbsp; ZWORK.PERIOD_DATES;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set TEMP;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do i=mn to mx;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; call execute('proc export data=zwork.emp_history1 (where=(period_dt='||strip(put(i,best.))||'))&lt;/P&gt;&lt;P&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; outfile="...\file_'||strip(put(i,best.))||'.xlsx" dbms=excel replace;&lt;/P&gt;&lt;P&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; run;');&lt;/P&gt;&lt;P&gt;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:03:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218143#M40197</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2015-04-09T15:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218144#M40198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I always forget about being able to do multiple "into :'. Thanks for the reminder.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've changed my program to the following but I still can't get it to work. I don't get an error message or anything:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;&amp;nbsp; select &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min(PERIOD_DT) format = date9.,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; max(PERIOD_DT)format = date9. &lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; into: min_date, : max_date&lt;/P&gt;&lt;P&gt;&amp;nbsp; from Zwork.period_Dates; &lt;/P&gt;&lt;P&gt;&amp;nbsp; quit; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options mlogic mprint;&lt;/P&gt;&lt;P&gt;%macro test (first=&amp;amp;min_date, last=&amp;amp;max_date);&lt;/P&gt;&lt;P&gt;%do date = &amp;amp;first %to &amp;amp;last;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data work.table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;set zwork.Emp_History1; &lt;/P&gt;&lt;P&gt;if PERIOD_DT in ("&amp;amp;date"d); &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc export data = work.table_&amp;amp;date&lt;/P&gt;&lt;P&gt;outfile = "&lt;SPAN style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; font-size: 13px; background-color: #ffffff;"&gt;W:\_TD9756_WAPPRIB00001040_\test.xlsx&lt;/SPAN&gt;"&lt;/P&gt;&lt;P&gt;DBMS = EXCEL replace; &lt;/P&gt;&lt;P&gt;sheet = table_&amp;amp;date; &lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%end;&lt;/P&gt;&lt;P&gt;%mend test;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:08:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218144#M40198</guid>
      <dc:creator>Ody</dc:creator>
      <dc:date>2015-04-09T15:08:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218145#M40199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;But you are not calling the macro?&lt;/P&gt;&lt;P&gt;It's a bit odd that you have data driven default parameters when creating the macro. Could work. I take it that you will recreate the macro each run.&lt;/P&gt;&lt;P&gt;But if you do, no need to use parameters, you could use the dates right off within the macro.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:19:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218145#M40199</guid>
      <dc:creator>LinusH</dc:creator>
      <dc:date>2015-04-09T15:19:25Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218146#M40200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am calling the macro. The only message the log gives me is "Remote submit to Server complete". I'm not getting any errors, etc. It's a little frustrating. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm open to other solutions. I'm not totally comfortable with macros so I went with what i thought was easiest for me (compliments of the Macro 1 course I took recently).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218146#M40200</guid>
      <dc:creator>Ody</dc:creator>
      <dc:date>2015-04-09T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218147#M40201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1. Have you defined the full macro program on the server as well as the macro call?&lt;/P&gt;&lt;P&gt;2. What part isn't working as expected? Usually by default I wouldn't expect the a server to have access to the W drive, if that's your local network though it may. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm not sure I'd expect it to work anyways - what do first and last resolve to? You most likely need to convert it to the appropriate date structure. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;%do &lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;date = &amp;amp;first %to &amp;amp;last;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;data work.table_&amp;amp;date; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;set zwork.Emp_History1; &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;if PERIOD_DT in (&lt;SPAN style="text-decoration: underline;"&gt;&lt;STRONG&gt;"&amp;amp;date"d&lt;/STRONG&gt;&lt;/SPAN&gt;); &lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif;"&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 15:52:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218147#M40201</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2015-04-09T15:52:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218148#M40202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for all the replies.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to get it working by changing the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%macro test;&lt;/P&gt;&lt;P&gt;%do date = &amp;amp;min_date %to &amp;amp;max_date;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 16:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218148#M40202</guid>
      <dc:creator>Ody</dc:creator>
      <dc:date>2015-04-09T16:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: Can't get macro to work</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218149#M40203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Following Reeza's comments, you really haven't provided us much information.&amp;nbsp; But looking over your post, it may be a problem with how you are handling the dates.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your macro %do loop, the begin and end values resolve to character representations of the date (e.g.&amp;nbsp; &lt;SPAN style="font-size: 13.3333330154419px;"&gt;31MAY2009). So SAS see this as something like:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&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; DO i=31MAY2009 TO 20JUN2009;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&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;lt;do important things&amp;gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&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; END; &lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does SAS count from these values?&amp;nbsp; I would suggest storing the dates as SAS dates in the macro variables and iterate over those. From the program in your first post, it looks like the variable PERIOD_DT is already stored as a SAS (numerical) date, so this should work.&amp;nbsp; So just drop the FORMAT = date9. in the select statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;LATER.After your comment&amp;gt;&amp;nbsp; I'm guessing you changed something else in the format in how you stored the dates, so that your were iterating over numbers rather than something else. For everyone who tries to learn from these postings, it would be good if you included the (full) version of the code that worked for you.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:16:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Can-t-get-macro-to-work/m-p/218149#M40203</guid>
      <dc:creator>optimist</dc:creator>
      <dc:date>2015-04-09T17:16:45Z</dc:date>
    </item>
  </channel>
</rss>

