<?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: Array Processing (?) in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194721#M48866</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be a case for a hash iterator, where you walk through the teacher absences and output if absence_date is between date_enrolled and date_left ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 14 Apr 2015 07:18:30 GMT</pubDate>
    <dc:creator>user24feb</dc:creator>
    <dc:date>2015-04-14T07:18:30Z</dc:date>
    <item>
      <title>Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194716#M48861</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Frankly, this problem is beyond my skill set, so I'm hoping for your help (and patience) as I struggle through this.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My PROC SQL step that joins these 2 tables:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;create table join1 as select&lt;/P&gt;&lt;P&gt;a.*,t.absence_date, t.abs_count, t.abs_school, t.employee_name, t.employee_ssn from allsets as a&lt;/P&gt;&lt;P&gt;left join tchabs2 as t&lt;/P&gt;&lt;P&gt;on a.SSN=t.employee_SSN and a.schoolid=t.abs_school&lt;/P&gt;&lt;P&gt;order by SSN;&lt;/P&gt;&lt;P&gt;quit;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;My objective:&lt;/SPAN&gt; compare a teacher's absences (Absence_Date in TCHABS2) to a given interval (dateenrolled, dateleft in ALLSETS) and if the absence occurs within the interval, then count the absence.&amp;nbsp; Otherwise, ignore it.&amp;nbsp; However, when I join the tables I quickly see how the number of obs proliferates. If a teacher has 7 absences and her class roster has 50 students, then one teacher generates 350 obs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="text-decoration: underline;"&gt;Question&lt;/SPAN&gt;: before I begin matching the two tables, should I consider using an array so that there is one record per teacher per school?&amp;nbsp; I know enough about arrays to be dangerous.&lt;/P&gt;&lt;P&gt;I'm picturing the TCHABS2 table being transformed into something like so:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 793px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" width="138"&gt;school_Id&lt;/TD&gt;&lt;TD class="xl65" width="138"&gt;Employee_SSN&lt;/TD&gt;&lt;TD class="xl65" width="111"&gt;Employee_Name&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Job_Description&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Date1&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Absence_Type1&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Date2&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Type2&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;&lt;STRONG&gt;etc.&lt;/STRONG&gt;.&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Date7&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Type7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;7-Oct-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;8-Oct-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Full Day&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;9-Apr-15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD class="xl63"&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Half Day AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="text-align: right;"&gt;26&lt;/TD&gt;&lt;TD style="text-align: right;"&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;777&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Joni&lt;/TD&gt;&lt;TD&gt;Teacher Math&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;7-Oct-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Full Day&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;8-Oct-14&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;Full Day&lt;/TD&gt;&lt;TD&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333330154419px; text-align: -webkit-right;"&gt;9-Apr-15&lt;/SPAN&gt;&lt;/TD&gt;&lt;TD&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Half Day AM&lt;/SPAN&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TCHABS2 &lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="width: 793px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" width="103"&gt;abs_school&lt;/TD&gt;&lt;TD class="xl65" width="138"&gt;Employee_SSN&lt;/TD&gt;&lt;TD class="xl65" width="111"&gt;Employee_Name&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Job_Description&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Date&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Absence_Type&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;7-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;8-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;30-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;10-Feb-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;11-Feb-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;4-Mar-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;30&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;9-Apr-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Half Day AM&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;7-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;8-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;30-Oct-14&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;10-Feb-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;11-Feb-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;4-Mar-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Full Day&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" class="xl63" height="20"&gt;26&lt;/TD&gt;&lt;TD align="right" class="xl63"&gt;777&lt;/TD&gt;&lt;TD class="xl63"&gt; Joni&lt;/TD&gt;&lt;TD class="xl63"&gt;Teacher Math&lt;/TD&gt;&lt;TD align="right" class="xl64"&gt;9-Apr-15&lt;/TD&gt;&lt;TD class="xl63"&gt;Half Day AM&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ALLSETS&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="793"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="20" width="103"&gt;STUDENT&lt;/TD&gt;&lt;TD class="xl67" width="138"&gt;Dateenrolled&lt;/TD&gt;&lt;TD class="xl67" width="111"&gt;DateLeft&lt;/TD&gt;&lt;TD class="xl67" width="147"&gt;Schoolid&lt;/TD&gt;&lt;TD class="xl67" width="147"&gt;Course_Name&lt;/TD&gt;&lt;TD class="xl67" width="147"&gt;ssn&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="103"&gt;able&lt;/TD&gt;&lt;TD align="right" class="xl70" width="138"&gt;8/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" width="111"&gt;10/14/2014&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;30&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Mathematics 7&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;777&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="103"&gt;baker&lt;/TD&gt;&lt;TD align="right" class="xl70" width="138"&gt;8/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" width="111"&gt;6/5/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;30&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Mathematics 7&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;777&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="103"&gt;charlie&lt;/TD&gt;&lt;TD align="right" class="xl70" width="138"&gt;8/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" width="111"&gt;6/5/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;30&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Mathematics 7&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;777&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="103"&gt;delta&lt;/TD&gt;&lt;TD align="right" class="xl70" width="138"&gt;8/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" width="111"&gt;6/5/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;30&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Mathematics 7&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;777&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="20" width="103"&gt;echo&lt;/TD&gt;&lt;TD align="right" class="xl70" width="138"&gt;8/18/2014&lt;/TD&gt;&lt;TD align="right" class="xl70" width="111"&gt;6/5/2015&lt;/TD&gt;&lt;TD align="right" class="xl65" width="147"&gt;30&lt;/TD&gt;&lt;TD class="xl65" width="147"&gt;Mathematics 7&lt;/TD&gt;&lt;TD align="right" class="xl69"&gt;777&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 16:40:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194716#M48861</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2015-04-13T16:40:34Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194717#M48862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You probably do NOT want to transpose the data so that there are multiple date variables as any comparison logic gets very complicated very quickly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the problem is comparing the teacher with students and generating more records than desired you may want to summarize the STUDENT data down to a CLASS level before joining. If you need to know how many students are involved then you have what you need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is final report supposed to look like?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 17:46:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194717#M48862</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-13T17:46:41Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194718#M48863</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The final report:&lt;/P&gt;&lt;P&gt;I will sort it by school, then teacher, then class.&lt;/P&gt;&lt;P&gt;STUDENT_NAME&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SCHOOLID&amp;nbsp;&amp;nbsp; DATEENROLLED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DATELEFT&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DAYS_ENROLLED&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NUMBER_OF_TEACHER_ABSENCES&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; NET_DAYS_ENROLLED (by subtracting teacher absences from days enrolled, only counting those that fell between dateenrolled and dateleft)&amp;nbsp;&amp;nbsp; PERCENT_OF_YEAR_ENROLLED (by dividing the net days enrolled by days enrolled)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Essentially, I'm wanting to show each teacher what percent of the school year a student was in her class.&amp;nbsp; One of the business rules says that you can subtract the number of days that a teacher was absent from the number of days a student was enrolled to get the percent of the year enrolled.&amp;nbsp; A school year = 180 days.&amp;nbsp; Say that a student was enrolled for 100 days.&amp;nbsp; Further, during those 100 days the teacher was absent 10 of those days.&amp;nbsp; The net_days_enrolled is 100 - 10.&amp;nbsp; The percent_of_year_enrolled would be (100 - 10)/180 = 50%.&amp;nbsp; The teacher has to log into a portal and populate this percentage for each student she teaches in each of her classes.&amp;nbsp; One data set I have contains all student info, including class information.&amp;nbsp; The other data set contains teacher absence dates.&amp;nbsp; The SSN and schoolid appear in both sets.&amp;nbsp; This is what I'm matching on. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 18:05:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194718#M48863</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2015-04-13T18:05:12Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194719#M48864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Since you are reporting on student/class combinations then you don't want to try to reduce the number of results as you need each one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you haven't already, look into Proc Report as it will allow you to make these calculations and generate report tables at the same time. That assumes your dates are SAS date values, then number of days enrolled is date_left - dateenrolled. These should be doeable in Compute blocks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 20:50:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194719#M48864</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-13T20:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194720#M48865</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I understand what you're saying, I'm really looking at student/teacher combinations.&amp;nbsp; I will look into PROC REPORT.&amp;nbsp; I have seen code involving a compute block but have never actually tried to use it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 23:17:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194720#M48865</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2015-04-13T23:17:33Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194721#M48866</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could be a case for a hash iterator, where you walk through the teacher absences and output if absence_date is between date_enrolled and date_left ..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 07:18:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194721#M48866</guid>
      <dc:creator>user24feb</dc:creator>
      <dc:date>2015-04-14T07:18:30Z</dc:date>
    </item>
    <item>
      <title>Re: Array Processing (?)</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194722#M48867</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'll have to research how to use a hash iterator.&amp;nbsp; I've never used it before.&amp;nbsp; Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 14 Apr 2015 13:10:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Array-Processing/m-p/194722#M48867</guid>
      <dc:creator>GreggB</dc:creator>
      <dc:date>2015-04-14T13:10:22Z</dc:date>
    </item>
  </channel>
</rss>

