<?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: Assigning Date Macro Variable to a Date MMDDYY10. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288608#M59537</link>
    <description>&lt;P&gt;Here is some code and test data which shows the process after importing the file. &amp;nbsp;The data loops over each row, retaining a count as it goes. &amp;nbsp;To get days is simply taking one date from another, to get work days, I add in another loop to loop over all the days between the dates, and adding to the totla if its a weekday. &amp;nbsp;I would really advise doing the Base SAS trainning and getting familiar with working with SAS data as it is different to other languages.&lt;/P&gt;
&lt;PRE&gt;data have;
  id=125;
  file="Loan_Detail 01012016.txt";
  source_date="010416";
  source_date_dte="01apr2016"d;
  output;
  source_date="010516";
  source_date_dte="01may2016"d;
  output;
  source_date="010616";
  source_date_dte="01jun2016"d;
  output;
run;

data want (drop=i);
  set have;
  by id;
  retain first_date last_date days count_files count_workdays;
  if first.id then do;
    first_date=source_date_dte;
    count_files=1;
    days=1;
    if weekday(source_date_dte) not in (1,7) then count_workdays=1;
    else count_workdays=0;
  end;
  else do;
    count_files=count_files+1;
    days=days + (source_date_dte - first_date);
    do i=first_date to source_date_dte;
      if weekday(i) not in (1,7) then count_workdays=count_workdays+1;
    end;
  end;
  if last.id then do;
    last_date=source_date_dte;
    output;
  end;
  format first_date last_date date9.;
run;

&lt;/PRE&gt;</description>
    <pubDate>Mon, 01 Aug 2016 14:42:33 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2016-08-01T14:42:33Z</dc:date>
    <item>
      <title>Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287782#M59254</link>
      <description>&lt;P&gt;I am Looping thru a dataset and want to assign a date to a&amp;nbsp;macro variable (&amp;amp;FDay / &amp;amp;LDay).&amp;nbsp; The underlying table's data is formated as MMDDYY10.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is my Code and the log file restult that show a number value for the data input (sample of log commented in the code.&lt;/P&gt;&lt;P&gt;The actual first and last dates are: &lt;STRONG&gt;01/06/2016 and 01/14/2016.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any help is greatly appreciated!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;%macro&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; &lt;I&gt;Loop_Loans&lt;/I&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; i=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%To&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;100&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%By&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Let&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; cnt = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Eval&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;(&amp;amp;i.);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;　&lt;/P&gt;&lt;P&gt;data _Null_;&lt;/P&gt;&lt;P&gt;set LOANS_First_Last_Date (obs=&amp;amp;i firstobs=&amp;amp;i);&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;call symputx(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vLoan_Number'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, Loan_Number);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;call symputx(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vFDay'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,Date_Source_FirstDay);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;call symputx(&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'vLDay'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;, Date_Source_LastDay);&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; &amp;amp;cnt. and the LoanNumber is &amp;amp;vLoan_Number. and FDay is &amp;amp;vFDay. and LDay is &amp;amp;vLDay.;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Here are the variable values in the LOG.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;100 and the LoanNumber is 2200571630 and FDay is 20453 and LDay is 20527&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%End&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;%Mend&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Loop_Loans; %&lt;STRONG&gt;&lt;I&gt;Loop_Loans&lt;/I&gt;&lt;/STRONG&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:22:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287782#M59254</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-28T13:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287791#M59255</link>
      <description>&lt;P&gt;I am not sure why? &amp;nbsp;To print out the values in a dataset:&lt;/P&gt;
&lt;P&gt;proc print data=&lt;SPAN&gt;LOANS_First_Last_Date;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;run;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;I am not sure what the point in your code is, a datastep IS a loop, it iterates through each observation in the dataset. &amp;nbsp;Why try to put loads of macro code around it to do that purpose?&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Also to note, macro is text generation only, it has no structures for datatypes other than text, so isn't the best tool for data processing. &amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Perhaps post test data - in the form of a datastep - and what you are trying to do with that data.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 13:41:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287791#M59255</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T13:41:16Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287801#M59258</link>
      <description>&lt;P&gt;This code is only a snapshot of the whole picture:&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have a dataset that is a list of days all the way out to the year 2040. I want to calculate the number or workdays that the Loan is in the "system".&amp;nbsp; To do this, I must look up first day that&amp;nbsp;the loan (hence loan number)&amp;nbsp;entered the system AND the last day that it left the system.&amp;nbsp; Once, the vaiables hold the beginning and ending dates, I will calculate the number of work days using my&amp;nbsp;"Days" lookup&amp;nbsp;table like this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;/* Set Variable for Work Days */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;proc sql noprint;&lt;/P&gt;&lt;P&gt;SELECT&lt;/P&gt;&lt;P&gt;/* Wrk_Days */&lt;/P&gt;&lt;P&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;(COUNT(t1.Today)) format &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;n8.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; into :cntWrkDays&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;FROM WORK.DAYS t1&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;WHERE t1.Today &amp;gt;=&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'6Jan2016'd&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; AND t1.Today &amp;lt;= &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;'29Feb2016'd&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; AND t1.WorkDay = &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;'Yes'&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;QUIT;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;%Put&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; The Workdays Are &amp;amp;cntWrkDays.; /* Gives--&amp;gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;The Workdays Are 39 */&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:11:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287801#M59258</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-28T16:11:26Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287832#M59261</link>
      <description>&lt;P&gt;Well, I don't know about either your code or your data, as I can't see either. &amp;nbsp;But if you need to know the number of days between two rows of data - assuming row x is the first time, and row y is the last record, then a simple min/max for each subject will get you what you want. &amp;nbsp;See code below.&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc sql;
  select  CUST_ID,
          min(DATE) as X,
          max(DATE) as Y,
          max(DATE) - min(DATE) as NUM_DAYS
  from    HAVE
  group by CUST_ID;
quit;&lt;/PRE&gt;</description>
      <pubDate>Thu, 28 Jul 2016 14:56:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287832#M59261</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T14:56:48Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287861#M59270</link>
      <description>&lt;P&gt;&lt;STRONG&gt;Yes, I am familiar with MIN and MAX.&amp;nbsp;But the Date range will include weekend days.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I must take the count that you calculated and remove the Weekend days from the count.&amp;nbsp; That is why I want to use a table that marks the workdays.&amp;nbsp; Here is the "Days" dataset and the query in my previous post will correctly count the work days (and correctly exclude the weekend days) using the Starting and ending Date in the data ranges for each loan (134,000 loans to calculate).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;See Screenshot of the "Days" dataset (attached .png).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12793i67378892D52E2832/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="2016-07-28_11-07-37.png" title="2016-07-28_11-07-37.png" /&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:13:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287861#M59270</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-28T16:13:42Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287868#M59274</link>
      <description>&lt;P&gt;Well, I don;t have any test data so this is just an example:&lt;/P&gt;
&lt;PRE&gt;data have;
  cust_id=1; 
  do date="01jan2015"d to "13apr2015"d;
    output;
  end;
  format date date9.;
run;

data want;
  set have;
  by cust_id;
  retain count;
  if first.cust_id then count=0;
  if weekday(date) not in (1,7) then count=count+1;
  if last.cust_id then output;
run;&lt;/PRE&gt;
&lt;P&gt;Weekday function will tell you 1 or 7 if its weekend, so just exclude them from the count. &amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 16:24:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287868#M59274</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-28T16:24:52Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287890#M59281</link>
      <description>&lt;P&gt;RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Your code is brilliant!&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just still don't see how to pass the Loan_Number, First_Date, and Last Date into it (the code)&amp;nbsp;using the values from my loan table.&amp;nbsp; That is where I am stuck.&amp;nbsp; My End desire is to have a table / List with this format:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Loan_Number&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; Wrk_Days_In_System&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;1200489472&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; 25&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;do date="01jan2015"d to "13apr2015"d; &amp;lt;---------------&amp;nbsp; How do I get these dates into your code (114,000)?&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I apologize for not sending some actual records.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have masked&amp;nbsp;a few records and&amp;nbsp;pasted into excel the two Dataset that I am working with.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jul 2016 18:28:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/287890#M59281</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-28T18:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288062#M59355</link>
      <description>&lt;P&gt;Sorry, I don't download excel files. &amp;nbsp;Post test data as a datastep in the text box.&lt;/P&gt;
&lt;P&gt;Why would you need to pass anything in? &amp;nbsp;You have data which contains rows for each loan_number and date - that is the data you are processing. &amp;nbsp;On that data you then run your counting logic. &amp;nbsp;There is no looping, no creating any other data, no maco calling, none of that is necessary. &amp;nbsp;You have some data, you run a datastep over the data, that is all.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 08:14:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288062#M59355</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-29T08:14:32Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288101#M59359</link>
      <description>&lt;P&gt;I am very, very&amp;nbsp;close to getting this to run!&amp;nbsp; Your help is greatly appreciated.&lt;/P&gt;&lt;P&gt;Below is your code modified to my data:&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output is perfect except it is not looping to do the counts.&lt;/P&gt;&lt;P&gt;I have attached a screen shot of the&amp;nbsp;output data (which is the same as the input data (plus the count and date)).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Notice: the count returned &amp;nbsp;= 1 (because it is not looping First to Last).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Here is the error message:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ERROR: Invalid DO loop control information, either the INITIAL or TO expression is missing or the BY expression is missing, zero,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;or invalid.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#ff0000"&gt;Looks like i need to convert my date format from mmddyy10. to date9.&amp;nbsp; to get the loop function to work?&amp;nbsp; How would you be doing that?&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Loan_number=2200571630;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; date=Date_Loan_FirstDay &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Date_Loan_LastDay;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; date &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE_NEW;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; LOAN_NUMBER;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;retain&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; first.LOAN_NUMBER &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; weekday(date) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;not&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; in (&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count=count+&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; last.LOAN_NUMBER &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12801i915785DB129DE9D5/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="Count_OUTPUT.png" title="Count_OUTPUT.png" /&gt;</description>
      <pubDate>Fri, 29 Jul 2016 14:18:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288101#M59359</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-29T14:18:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288136#M59364</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/90457"&gt;@Kody_devl&lt;/a&gt; wrote:&lt;BR /&gt;
&lt;P&gt;I am very, very&amp;nbsp;close to getting this to run!&amp;nbsp; Your help is greatly appreciated.&lt;/P&gt;
&lt;P&gt;Below is your code modified to my data:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The output is perfect except it is not looping to do the counts.&lt;/P&gt;
&lt;P&gt;I have attached a screen shot of the&amp;nbsp;output data (which is the same as the input data (plus the count and date)).&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;Notice: the count returned &amp;nbsp;= 1 (because it is not looping First to Last).&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;Here is the error message:&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;ERROR: Invalid DO loop control information, either the INITIAL or TO expression is missing or the BY expression is missing, zero,&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;or invalid.&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#ff0000"&gt;Looks like i need to convert my date format from mmddyy10. to date9.&amp;nbsp; to get the loop function to work?&amp;nbsp; How would you be doing that?&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;/*&lt;/P&gt;
&lt;P&gt;Loan_number=2200571630;&lt;/P&gt;
&lt;P&gt;*/&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;do&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; date=Date_Loan_FirstDay &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;to&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Date_Loan_LastDay;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;end&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;format&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; date &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;date9.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE_NEW;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;set&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; Work.LOANS_FIRST_LAST_DATE;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;by&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; LOAN_NUMBER;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;retain&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; first.LOAN_NUMBER &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count=&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;0&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; weekday(date) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;not&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; in (&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;,&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;7&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;) &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; count=count+&lt;/FONT&gt;&lt;/FONT&gt;&lt;STRONG&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;&lt;FONT color="#008080" face="Courier New" size="3"&gt;1&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;if&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt; last.LOAN_NUMBER &lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;then&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;output&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I see two issues. First the the data set &lt;FONT face="Courier New"&gt;Work.LOANS_FIRST_LAST_DATE does not have any&amp;nbsp;place where you assign values to Date_Loan_FirstDay &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;or &lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Date_Loan_LastDay. So you requested a Do . to .; in efffect causing the error message.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;FONT face="Courier New"&gt;&lt;FONT face="Courier New" size="3"&gt;&lt;FONT face="Courier New" size="3"&gt;Also in your initial post you were using the variables Date_Source_FirstDay and Date_Source_LastDay. Just wondering if the result is going to be what you want there.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 14:42:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288136#M59364</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-07-29T14:42:57Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288153#M59367</link>
      <description>&lt;P&gt;Hi Ballard,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am a developer in everything else, but SAS.&amp;nbsp;&amp;nbsp;&lt;BR /&gt;To be honest, I am not sure how you would assign a the value of the underlying table to a variable.&amp;nbsp;&lt;BR /&gt;That is what I was trying to doing using the macro in the original post.&lt;BR /&gt;The responses&amp;nbsp;were that macros variables&amp;nbsp;could not receive and&amp;nbsp;assign a date format.&amp;nbsp;(Here were my results from that experiment).&amp;nbsp; So I gave up one that method (even though&amp;nbsp; was correctly loop&amp;nbsp; thru the source table).&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/*&lt;/P&gt;&lt;P&gt;Here are the variable values in the LOG.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Count No 100 and the LoanNumber is 2200571630 and FDay is 20453 and LDay is 20527&amp;nbsp; &lt;FONT color="#ff0000"&gt;(Note: The source table&amp;nbsp;stores 01/31/2016 (mmddyy10. as the date format so why do I get 20453?)&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;Up higher in the posted&amp;nbsp;&amp;nbsp;this Macro code:&lt;/STRONG&gt;&lt;BR /&gt;%macro Loop_Loans;&lt;BR /&gt;%Do i=1 %To 100 %By 1;&lt;BR /&gt;%Let cnt = %Eval(&amp;amp;i.);&lt;/P&gt;&lt;P&gt;data _Null_;&lt;/P&gt;&lt;P&gt;set LOANS_First_Last_Date (obs=&amp;amp;i firstobs=&amp;amp;i);&lt;BR /&gt;call symputx('vLoan_Number', Loan_Number);&lt;BR /&gt;call symputx('vFDay',Date_Source_FirstDay);&lt;BR /&gt;call symputx('vLDay', Date_Source_LastDay);&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;%Put &amp;amp;cnt. and the LoanNumber is &amp;amp;vLoan_Number. and FDay is &amp;amp;vFDay. and LDay is &amp;amp;vLDay.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;/*&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;Here are the variable values in the LOG.&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;100 and the LoanNumber is 2200571630 and FDay is 20453 and LDay is 20527&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;*/&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;%End;&lt;/P&gt;&lt;P&gt;%Mend Loop_Loans; %Loop_Loans;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your thoughts?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jul 2016 15:14:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288153#M59367</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-07-29T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288318#M59428</link>
      <description>&lt;P&gt;Yes, I would suggest you look at how SAS works first. &amp;nbsp;It isn't like other languages, and it sounds like you are trying to force code through macro to emulate what you would do in other languages. &amp;nbsp;Macro language is nothing more than a text generator, it is not really a programming language. &amp;nbsp;Base SAS is the programming language, it works by processing dataset, observation by observation in a loop. &amp;nbsp;So task one is to put your data into a dataset, then work out the logic to process the data row by row.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For your problem, start by defining your input data, where do these first and last dates come from? &amp;nbsp;Post some examples of this original data - as a datastep so e have something to work with - my original code was based on the assumption you had a dataset, so that is where we need to start.&lt;/P&gt;</description>
      <pubDate>Sat, 30 Jul 2016 10:51:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288318#M59428</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-07-30T10:51:07Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288567#M59529</link>
      <description>&lt;P&gt;RW9&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;You are exactly correct.&lt;/STRONG&gt;&amp;nbsp; I am trying to emulate a looping process as I would&amp;nbsp;use in other languages.&amp;nbsp; My approach, looping thru the dataset&amp;nbsp;and being able to pass data value to variables in any data type / format is logical an intuitive for me.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;I did not understand what you just explained and now, I am starting to get it.&amp;nbsp; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I am trying to do is relatively simple.&amp;nbsp;&lt;/P&gt;&lt;P&gt;I could send some data in excel but am under the impression that you don't like excel&amp;nbsp; files, even it is .xlsx (vs xlsm).&amp;nbsp; If Excel .xlsx OK&amp;nbsp;(no macros contained) I could attach 100 records of sample data.&amp;nbsp; I don't know how to write code to accually generate the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is a&amp;nbsp;some simple data example of what I am trying to do.&lt;/P&gt;&lt;P&gt;Step 1. Daily_Loan_file.txt (&lt;STRONG&gt;no files are gernerated on weekend&lt;/STRONG&gt;). ---------&amp;gt;&amp;nbsp; imported to a sas table / dataset.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Step 2.&amp;nbsp; Here are the key fields in the SAS table (Comment:&amp;nbsp; I can change the date format to date9. or other formats if helpful).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table #1&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Loan_Number *(n8.)&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Source_Text_Tile (Char40)&amp;nbsp;&amp;nbsp;&amp;nbsp; Source_Date (Char10)&amp;nbsp;&amp;nbsp;&amp;nbsp; Source_Date_Dte (MMDDYY10.)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;Loan_Detail 01012016.txt&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; 010116&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/01/16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loan_Detail 01042016.txt&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; 010416&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/04/16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loan_Detail 01052016.txt&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; 010516&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/05/16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loan_Detail 01062016.txt&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; 010616&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/06/16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loan_Detail 01072016.txt&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; 010716&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/07/16&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Loan_Detail 01082016.txt&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; 010816&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;01/08/16&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Step 3.&amp;nbsp;Summarize the first&amp;nbsp;dataset into another that looks liks this (I used Min / MAX to do this easily).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Table #2&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;LN_NBR&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; First_Day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Last_Day&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No_Days&amp;nbsp;&amp;nbsp; count_Files&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;FONT color="#ff0000"&gt;No_Work_Days&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; 125&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/01/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 01/08/2016&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 8&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; 6&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;&lt;FONT color="#ff0000"&gt; 6&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;----------- This is the number that I am trying to calculate because, if the file count doesn't equal the no_Work_Days, I know that I am either:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;1.&amp;nbsp; Missing a file (txt)&amp;nbsp;or&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;2.&amp;nbsp; The loan dropped from the system for a day or 2 or 10 days, and then is re-instates.&amp;nbsp; I want to identify the broken chains.&amp;nbsp; If the&amp;nbsp;file count was 4 and the work days is 6, I know something is wrong.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The first table (before summarized) has 5,000,000 records (Jan16-Jul16).&amp;nbsp;&lt;/P&gt;&lt;P&gt;Table #2 has 117,000 loans so I have 117,000 workdays to calculate.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The code that you gave me does the calculation perfectly.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;How do I go from hard codes dates to passing 114,0000 values thru the calculation.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I appreciate your hanging in there with me!&amp;nbsp;&amp;nbsp;I&amp;nbsp;working with a couple of 15 year SAS developers and they couldn't instinctively tell me how to do this or fix my code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;STRONG&gt;PS&amp;nbsp; -&lt;/STRONG&gt; If you have code that you can run against a dataset to generate the data I could trry to get the code that produces the data.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;"Post some examples of this original data - as a datastep so e have something to work with - my original code was based on the assumption you had a dataset, so that is where we need to start."&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Screen Shot of Table 2 attached with date9. format&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;LET me know what else I can send.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BR /&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/12810i8F97E30C4CD9D4BC/image-size/large?v=1.0&amp;amp;px=600" border="0" alt="2016-08-01_8-09-11.png" title="2016-08-01_8-09-11.png" /&gt;</description>
      <pubDate>Mon, 01 Aug 2016 13:10:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288567#M59529</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-08-01T13:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288603#M59534</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;
&lt;P&gt;&amp;nbsp; I recommend taking a step back and looking at the basics of how a DO loop works with and without macro values. To answer this question, specifically:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;do date="01jan2015"d to "13apr2015"d; &amp;lt;---------------&amp;nbsp; How do I get these dates into your code (114,000)&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Consider this example:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4366iBDC044B35977C2C9/image-size/original?v=v2&amp;amp;px=-1" alt="with_date_macro.png" title="with_date_macro.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;And then compare that to using just the numeric value for 7/15 or 20650 and then 20655 as the end date for July 20:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4367iF341285C10548E72/image-size/original?v=v2&amp;amp;px=-1" alt="using_numbers.png" title="using_numbers.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;and, finally, consider this example, using sashelp.prdsale, which has some date values...you have 2 possible choices for having SQL build your macro variables. And depending on how SQL builds your macro variables will determine how you use the macro variables in any other code. With the first example, the date returned is the number of days since Jan 1, 1960, which can be used as a simple numeric constant in subsequent code, but with the second example, the date returned is a formatted date string that would have to be quoted as "&amp;amp;fstart"d and "&amp;amp;fend"d in subsequent code:&lt;/P&gt;
&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/4370iC2CC57DEBD7B6581/image-size/original?v=v2&amp;amp;px=-1" alt="using_sql.png" title="using_sql.png" border="0" /&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 01 Aug 2016 14:36:59 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288603#M59534</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2016-08-01T14:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288608#M59537</link>
      <description>&lt;P&gt;Here is some code and test data which shows the process after importing the file. &amp;nbsp;The data loops over each row, retaining a count as it goes. &amp;nbsp;To get days is simply taking one date from another, to get work days, I add in another loop to loop over all the days between the dates, and adding to the totla if its a weekday. &amp;nbsp;I would really advise doing the Base SAS trainning and getting familiar with working with SAS data as it is different to other languages.&lt;/P&gt;
&lt;PRE&gt;data have;
  id=125;
  file="Loan_Detail 01012016.txt";
  source_date="010416";
  source_date_dte="01apr2016"d;
  output;
  source_date="010516";
  source_date_dte="01may2016"d;
  output;
  source_date="010616";
  source_date_dte="01jun2016"d;
  output;
run;

data want (drop=i);
  set have;
  by id;
  retain first_date last_date days count_files count_workdays;
  if first.id then do;
    first_date=source_date_dte;
    count_files=1;
    days=1;
    if weekday(source_date_dte) not in (1,7) then count_workdays=1;
    else count_workdays=0;
  end;
  else do;
    count_files=count_files+1;
    days=days + (source_date_dte - first_date);
    do i=first_date to source_date_dte;
      if weekday(i) not in (1,7) then count_workdays=count_workdays+1;
    end;
  end;
  if last.id then do;
    last_date=source_date_dte;
    output;
  end;
  format first_date last_date date9.;
run;

&lt;/PRE&gt;</description>
      <pubDate>Mon, 01 Aug 2016 14:42:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288608#M59537</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-01T14:42:33Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288953#M59640</link>
      <description>&lt;P&gt;RW9&lt;/P&gt;&lt;P&gt;I got it to work and, going thru the modifications, I see how it works!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;This has opened the door to previously unknown data issues for my client, unfairly making me, &lt;STRONG&gt;&lt;FONT color="#ff0000"&gt;as a result of your exemplary efforts (and patience),&lt;/FONT&gt;&lt;/STRONG&gt;&amp;nbsp; the hero!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I cannot thank you enough!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;SAS does the summary calculations of the 5 million records in an impressive 10 Seconds (I do index the tables)!&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you recommend any Base SAS training on video as I am a&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000000" face="Calibri" size="3"&gt;kinesthetic &lt;/FONT&gt;and auditory learning?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks Again;&lt;/P&gt;&lt;P&gt;Kody_devl&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 19:05:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288953#M59640</guid>
      <dc:creator>Kody_devl</dc:creator>
      <dc:date>2016-08-02T19:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: Assigning Date Macro Variable to a Date MMDDYY10.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288962#M59645</link>
      <description>&lt;P&gt;Well, when they give you a knighthood...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;As for your request, SAS themselves provide videos on the basic stuff - you have to pay for the more expensive ones:&lt;/P&gt;
&lt;P&gt;&lt;A href="http://support.sas.com/training/tutorial/" target="_blank"&gt;http://support.sas.com/training/tutorial/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;(Some of the interface is different as its based on the learning edition of SAS).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also, this popped up when searching:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://www.youtube.com/watch?v=XXTH6pDPmb0" target="_blank"&gt;https://www.youtube.com/watch?v=XXTH6pDPmb0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;Yoi could give that a look as well, see if it helps.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That should give you a good grounding in the basics. &amp;nbsp;Once you want to get more advanced, then you need to split your topics up and focus. &amp;nbsp;Good reference points are:&lt;/P&gt;
&lt;P&gt;Graphs:&amp;nbsp;&lt;A href="http://blogs.sas.com/content/graphicallyspeaking/" target="_blank"&gt;http://blogs.sas.com/content/graphicallyspeaking/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;General: &amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here, this community has a wealth of information&lt;/P&gt;
&lt;P&gt;Also,&amp;nbsp;&lt;A href="http://www.lexjansen.com/" target="_blank"&gt;http://www.lexjansen.com/&lt;/A&gt; &amp;nbsp; holds a weatlh more information.&lt;/P&gt;</description>
      <pubDate>Tue, 02 Aug 2016 15:56:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Assigning-Date-Macro-Variable-to-a-Date-MMDDYY10/m-p/288962#M59645</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-08-02T15:56:10Z</dc:date>
    </item>
  </channel>
</rss>

