<?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 count the number of transactions at hand in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485597#M126178</link>
    <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create table table1 as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select unique la1.*, count(?) as la1_no_hand_la1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from la1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;left join&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;la1 past1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sign &amp;lt; la1.date_exp and la1.status="$EX" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sign &amp;lt; la1.date_sold and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_exp &amp;lt; la1.date_exp and past1.status="$EX" and la1.status="$EX")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_exp &amp;lt; la1.date_sold and past1.status="$EX" and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sold &amp;lt; la1.date_exp and past1.status="$VE" and la1.status="$EX")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sold &amp;lt; la1.date_sold and past1.status="$VE" and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;group by 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;order by 1 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't know what I should put instead of the ? in the count(?) because I don't understand what does past.1 stands for. I tried the original code as count(past1.date_sign), but it does not work this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result I want to have is the listing at hand during the contract period. For example, for id=1, the listing_1 A has its own contract period between date_sign and date_exp or date_sold if the listing has been sold. I want to count all the listings the first listing agent A involved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attachments for the data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Freda&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 09 Aug 2018 21:06:31 GMT</pubDate>
    <dc:creator>freda</dc:creator>
    <dc:date>2018-08-09T21:06:31Z</dc:date>
    <item>
      <title>count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485597#M126178</link>
      <description>&lt;P&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I modified the code as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;proc sql;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;create table table1 as&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;select unique la1.*, count(?) as la1_no_hand_la1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;from la1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;left join&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;la1 past1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;on (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sign &amp;lt; la1.date_exp and la1.status="$EX" )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sign &amp;lt; la1.date_sold and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_exp &amp;lt; la1.date_exp and past1.status="$EX" and la1.status="$EX")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_exp &amp;lt; la1.date_sold and past1.status="$EX" and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sold &amp;lt; la1.date_exp and past1.status="$VE" and la1.status="$EX")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;or (la1.listing_1=past1.listing_1 and la1.date_sign&amp;lt; past1.date_sold &amp;lt; la1.date_sold and past1.status="$VE" and la1.status="$VE")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;group by 1&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;order by 1 ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;However, I don't know what I should put instead of the ? in the count(?) because I don't understand what does past.1 stands for. I tried the original code as count(past1.date_sign), but it does not work this time.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The result I want to have is the listing at hand during the contract period. For example, for id=1, the listing_1 A has its own contract period between date_sign and date_exp or date_sold if the listing has been sold. I want to count all the listings the first listing agent A involved.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please see the attachments for the data.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thank you&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Freda&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 21:06:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485597#M126178</guid>
      <dc:creator>freda</dc:creator>
      <dc:date>2018-08-09T21:06:31Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485598#M126179</link>
      <description>&lt;P&gt;The result supposed to be:&lt;/P&gt;&lt;P&gt;id&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; result&lt;/P&gt;&lt;P&gt;1&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;2&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 5&lt;/P&gt;&lt;P&gt;3&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/P&gt;&lt;P&gt;4&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/P&gt;&lt;P&gt;5&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;6&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;7&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;8&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;9&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;10&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;11&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;12&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;13&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;14&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;15&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;16&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;17&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;18&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;19&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;20&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;21&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;22&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;23&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;24&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;25&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;26&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;27&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;28&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;29&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;30&lt;SPAN&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;0&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 09 Aug 2018 21:10:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485598#M126179</guid>
      <dc:creator>freda</dc:creator>
      <dc:date>2018-08-09T21:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485676#M126213</link>
      <description>&lt;P&gt;Please provide the data step with which you read the csv.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 07:35:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485676#M126213</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-10T07:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485769#M126251</link>
      <description>Hi,&lt;BR /&gt;I did not import this data use data step. I used proc import:&lt;BR /&gt;proc import datafile = 'C:\Users\Samuel\Desktop\testing.csv'&lt;BR /&gt;out = la1&lt;BR /&gt;dbms = csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thank you</description>
      <pubDate>Fri, 10 Aug 2018 13:51:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485769#M126251</guid>
      <dc:creator>freda</dc:creator>
      <dc:date>2018-08-10T13:51:09Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485787#M126255</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/224413"&gt;@freda&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;Hi,&lt;BR /&gt;I did not import this data use data step. I used proc import:&lt;BR /&gt;proc import datafile = 'C:\Users\Samuel\Desktop\testing.csv'&lt;BR /&gt;out = la1&lt;BR /&gt;dbms = csv&lt;BR /&gt;replace;&lt;BR /&gt;run;&lt;BR /&gt;&lt;BR /&gt;Thank you&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;You do not know it yet, but you used a data step. You find the code in the log of the proc import.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Aug 2018 14:37:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485787#M126255</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-10T14:37:04Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485809#M126264</link>
      <description>Here is the code in the log:&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;598 /**********************************************************************&lt;BR /&gt;599 * PRODUCT: SAS&lt;BR /&gt;600 * VERSION: 9.4&lt;BR /&gt;601 * CREATOR: External File Interface&lt;BR /&gt;602 * DATE: 09AUG18&lt;BR /&gt;603 * DESC: Generated SAS Datastep Code&lt;BR /&gt;604 * TEMPLATE SOURCE: (None Specified.)&lt;BR /&gt;605 ***********************************************************************/&lt;BR /&gt;606 data WORK.LA1 ;&lt;BR /&gt;607 %let _EFIERR_ = 0; /* set the ERROR detection macro variable */&lt;BR /&gt;608 infile 'C:\Users\Samuel\Desktop\testing.csv' delimiter = ',' MISSOVER DSD lrecl=32767 firstobs=2 ;&lt;BR /&gt;609 informat id best32. ;&lt;BR /&gt;610 informat listing_1 $1. ;&lt;BR /&gt;611 informat listing_2 $1. ;&lt;BR /&gt;612 informat listing_3 $1. ;&lt;BR /&gt;613 informat listing_4 $1. ;&lt;BR /&gt;614 informat selling_1 $1. ;&lt;BR /&gt;615 informat selling_2 $1. ;&lt;BR /&gt;616 informat selling_3 $1. ;&lt;BR /&gt;617 informat selling_4 $1. ;&lt;BR /&gt;618 informat date_sign mmddyy10. ;&lt;BR /&gt;619 informat date_list mmddyy10. ;&lt;BR /&gt;620 informat date_exp mmddyy10. ;&lt;BR /&gt;621 informat date_sold mmddyy10. ;&lt;BR /&gt;622 informat status $2. ;&lt;BR /&gt;623 informat la1 best32. ;&lt;BR /&gt;624 informat ra1 best32. ;&lt;BR /&gt;625 informat date_sign_com best32. ;&lt;BR /&gt;626 informat listing_1_com $1. ;&lt;BR /&gt;627 informat nola1 best32. ;&lt;BR /&gt;628 informat nola2 best32. ;&lt;BR /&gt;629 informat temp best32. ;&lt;BR /&gt;630 informat temp2 best32. ;&lt;BR /&gt;631 informat temp3 best32. ;&lt;BR /&gt;632 informat temp4 best32. ;&lt;BR /&gt;633 informat la1_number_la1_5 best32. ;&lt;BR /&gt;634 informat la2_number_la1_5 best32. ;&lt;BR /&gt;635 format id best12. ;&lt;BR /&gt;636 format listing_1 $1. ;&lt;BR /&gt;637 format listing_2 $1. ;&lt;BR /&gt;638 format listing_3 $1. ;&lt;BR /&gt;639 format listing_4 $1. ;&lt;BR /&gt;640 format selling_1 $1. ;&lt;BR /&gt;641 format selling_2 $1. ;&lt;BR /&gt;642 format selling_3 $1. ;&lt;BR /&gt;643 format selling_4 $1. ;&lt;BR /&gt;644 format date_sign mmddyy10. ;&lt;BR /&gt;645 format date_list mmddyy10. ;&lt;BR /&gt;646 format date_exp mmddyy10. ;&lt;BR /&gt;647 format date_sold mmddyy10. ;&lt;BR /&gt;648 format status $2. ;&lt;BR /&gt;649 format la1 best12. ;&lt;BR /&gt;650 format ra1 best12. ;&lt;BR /&gt;651 format date_sign_com best12. ;&lt;BR /&gt;652 format listing_1_com $1. ;&lt;BR /&gt;653 format nola1 best12. ;&lt;BR /&gt;654 format nola2 best12. ;&lt;BR /&gt;655 format temp best12. ;&lt;BR /&gt;656 format temp2 best12. ;&lt;BR /&gt;657 format temp3 best12. ;&lt;BR /&gt;658 format temp4 best12. ;&lt;BR /&gt;659 format la1_number_la1_5 best12. ;&lt;BR /&gt;660 format la2_number_la1_5 best12. ;&lt;BR /&gt;661 input&lt;BR /&gt;662 id&lt;BR /&gt;663 listing_1 $&lt;BR /&gt;664 listing_2 $&lt;BR /&gt;665 listing_3 $&lt;BR /&gt;666 listing_4 $&lt;BR /&gt;667 selling_1 $&lt;BR /&gt;668 selling_2 $&lt;BR /&gt;669 selling_3 $&lt;BR /&gt;670 selling_4 $&lt;BR /&gt;671 date_sign&lt;BR /&gt;672 date_list&lt;BR /&gt;673 date_exp&lt;BR /&gt;674 date_sold&lt;BR /&gt;675 status $&lt;BR /&gt;676 la1&lt;BR /&gt;677 ra1&lt;BR /&gt;678 date_sign_com&lt;BR /&gt;679 listing_1_com $&lt;BR /&gt;680 nola1&lt;BR /&gt;681 nola2&lt;BR /&gt;682 temp&lt;BR /&gt;683 temp2&lt;BR /&gt;684 temp3&lt;BR /&gt;685 temp4&lt;BR /&gt;686 la1_number_la1_5&lt;BR /&gt;687 la2_number_la1_5&lt;BR /&gt;688 ;&lt;BR /&gt;689 if _ERROR_ then call symputx('_EFIERR_',1); /* set ERROR detection macro variable */&lt;BR /&gt;690 run;&lt;BR /&gt;&lt;BR /&gt;NOTE: The infile 'C:\Users\Samuel\Desktop\testing.csv' is:&lt;BR /&gt;Filename=C:\Users\Samuel\Desktop\testing.csv,&lt;BR /&gt;RECFM=V,LRECL=32767,File Size (bytes)=2867,&lt;BR /&gt;Last Modified=August 09, 2018 17:06:08 o'clock,&lt;BR /&gt;Create Time=August 09, 2018 17:06:04 o'clock&lt;BR /&gt;&lt;BR /&gt;NOTE: 30 records were read from the infile 'C:\Users\Samuel\Desktop\testing.csv'.&lt;BR /&gt;The minimum record length was 77.&lt;BR /&gt;The maximum record length was 92.&lt;BR /&gt;NOTE: The data set WORK.LA1 has 30 observations and 26 variables.&lt;BR /&gt;NOTE: DATA statement used (Total process time):&lt;BR /&gt;real time 0.06 seconds&lt;BR /&gt;cpu time 0.04 seconds&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Aug 2018 15:08:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/485809#M126264</guid>
      <dc:creator>freda</dc:creator>
      <dc:date>2018-08-10T15:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: count the number of transactions at hand</title>
      <link>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/487417#M127008</link>
      <description>&lt;P&gt;First of all, your join will leave no results, as you are testing for statuses beginning with a $ sign, but no such statuses are present.&lt;/P&gt;
&lt;P&gt;Second, you best start to check your conditions manually&amp;nbsp;against the data. Even with the literals stripped of the dollar signs, I got only 2 matches for the whole dataset, for id=2.&lt;/P&gt;
&lt;P&gt;eg id=1 is an observation with status='EX', so it would need a match&lt;/P&gt;
&lt;P&gt;- where the other (past1) date_sign is between date_sign and date_exp (not present)&lt;/P&gt;
&lt;P&gt;- where the other status is an 'EX' and the other date_ep falls between data_sign and date_exp (also not present)&lt;/P&gt;
&lt;P&gt;- where the other status is a 'VE' and the other date_sold falls between date_sign and date_exp (also not present)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Aug 2018 13:50:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/count-the-number-of-transactions-at-hand/m-p/487417#M127008</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-08-16T13:50:16Z</dc:date>
    </item>
  </channel>
</rss>

