Hi Guys,
I have got the historic data since Jan 2007 to June2019.
Any ideas or suggestions to create a automatic code by creating new flags for New Ins and Outs.
I have hard coded and got numbers using the below code for 6 months but need to automate it.
Any help is much appreciated.
data CM;
set POS_CM;
where Reals_Status='Total_Possession' and END_OF_MONTH = "30JUN2019"d;
run;
data LM;
set POS_LM;
where Reals_Status='Total_Possession' and END_OF_MONTH = "31MAY2019"d;
run;
proc sql;
create table New_in as
select * from CM where accno not in (Select accno from LM); quit;
proc sql;
create table New_Out as
select * from LM where accno not in (Select accno from CM); quit;
Please advise.thanks
Regards,
RS