Hi guys,
Need some of your expert wisdom!
This is the first time im using the First. and Last. and im having a little trouble...
Ive the following code below:-
Basically the above code will find duplicate account numbers.. So people who have called us more than once.. but what i need is some code to identify if the customer has called 3 or more times..
So if they call twice, then dont display that data.. If they have called 3 or more times, then display that data...
any ideas?
Thanks in advance
Shenn
Need some of your expert wisdom!
This is the first time im using the First. and Last. and im having a little trouble...
Ive the following code below:-
Code:
Data Telco_Features_By;
set Telco_Features_Raw;
By Workorder;
retain last_Act_date MyCount;
if (first.Workorder) then
do;
MyCount=1;
if ((DATE_ACTIONED le &end_dat.) and (DATE_ACTIONED ne .)) then
last_Act_date=DATE_ACTIONED;
end;
else if (WO_ENTRY_DATE ge last_Act_date) then
do;
if (last_Act_date ne .) then
if (intck('DAY',last_Act_date,WO_ENTRY_DATE) le 1) then
MyCount+1;
else
last_Act_date=.;
end;
Format last_Act_date date9.;
run;
Basically the above code will find duplicate account numbers.. So people who have called us more than once.. but what i need is some code to identify if the customer has called 3 or more times..
So if they call twice, then dont display that data.. If they have called 3 or more times, then display that data...
any ideas?
Thanks in advance
Shenn