<?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 output problems in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/output-problems/m-p/100338#M28202</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with 147k rows. I am trying to take the column that is the X and say that is my beginning point. So, if x=1 then I have a do statement. I make the the date +1 and the date +90 because any of the events that fall between 1 and 90 days from the original X need to be counted by the event and location. If I look at the first ID 104534, I see X took place on 6/6/2012. After that, there were events that occured in event1 and location1, however not necessarily by ID 104534. I need to count the events and location that took place and then place those in 104534's bucket. Then every ID that follows, I need to do the same. I tried to code how I need this and hope posting the code might offer some baseline. I am also posting an example of the data I have, the results when I run my code as written and what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 681px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;DATA HAVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;date&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;X&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event1&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event2&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event3&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event4&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location1&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location2&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/6/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/6/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/28/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/28/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;8/31/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;8/31/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; eventfinal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; event nobs=last_obs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; mem ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb = date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we = date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;90&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; pt = _N_ + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; last_obs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; event(keep= mem date event1 event2 event3 event4 location1 location2 location3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; rename=(date=dt))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; point=pt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; mem ne mem or dt &amp;gt; we &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;leave&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev1 = (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev1= (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev1= (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we =&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we=date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;' '&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb=date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we=wb&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="869"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;RESULTS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="869"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;DATA NEED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 01 Oct 2013 20:25:19 GMT</pubDate>
    <dc:creator>tmcrouse</dc:creator>
    <dc:date>2013-10-01T20:25:19Z</dc:date>
    <item>
      <title>output problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/output-problems/m-p/100338#M28202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table with 147k rows. I am trying to take the column that is the X and say that is my beginning point. So, if x=1 then I have a do statement. I make the the date +1 and the date +90 because any of the events that fall between 1 and 90 days from the original X need to be counted by the event and location. If I look at the first ID 104534, I see X took place on 6/6/2012. After that, there were events that occured in event1 and location1, however not necessarily by ID 104534. I need to count the events and location that took place and then place those in 104534's bucket. Then every ID that follows, I need to do the same. I tried to code how I need this and hope posting the code might offer some baseline. I am also posting an example of the data I have, the results when I run my code as written and what I need.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" style="WIDTH: 681px;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;DATA HAVE&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;date&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;X&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event1&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event2&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event3&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;event4&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location1&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location2&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none;"&gt;location3&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/6/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/6/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/28/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;6/28/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;8/31/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;"&gt;8/31/2012&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; eventfinal;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; event nobs=last_obs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; mem ; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; X=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb = date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we = date + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;90&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; pt = _N_ + &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; last_obs;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; event(keep= mem date event1 event2 event3 event4 location1 location2 location3&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; rename=(date=dt))&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; point=pt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; mem ne mem or dt &amp;gt; we &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;leave&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev1 = (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev1= (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev1= (event1);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev2= (event2);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev3= (event3);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location1&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc1ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location2&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc2ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dt &amp;gt;= wb and dt&amp;lt;=we and location3&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; and event4&amp;gt;=&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; loc3ev4= (event4);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we =&lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;.&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we=date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;' '&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; wb=date;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; we=wb&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="869"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;RESULTS&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="869"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl65" height="17" width="90"&gt;DATA NEED&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="17"&gt;MEM&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;ID&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev3&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc1ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc2ev4&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none;"&gt;loc3ev4&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;104534&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623422&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;2&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="17" style="border-top: medium none;"&gt;111&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;623256&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt;1&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Oct 2013 20:25:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/output-problems/m-p/100338#M28202</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-10-01T20:25:19Z</dc:date>
    </item>
    <item>
      <title>Re: output problems</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/output-problems/m-p/100339#M28203</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;I found the answer on my own by playing around with the code. I found that if I add =sum(loc1ev1,event1)&amp;nbsp; the summation turns out correctly. Of course I have to change it correctly for each if statement. EX. =sum(loc2ev1,event1) and so on.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Oct 2013 15:47:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/output-problems/m-p/100339#M28203</guid>
      <dc:creator>tmcrouse</dc:creator>
      <dc:date>2013-10-02T15:47:38Z</dc:date>
    </item>
  </channel>
</rss>

