I use the code -
data week;
set sales;
week_var = INTCK('WEEK','01/11/2009','07/11/2009');
proc print data = week;
run;
It gives me an error in log-
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
115:27 115:40
NOTE: Invalid numeric data, '01/11/2009' , at line 115 column 27.
NOTE: Invalid numeric data, '07/11/2009' , at line 115 column 40.
TransactionID=RX000152 DateofSale=03/11/2009 TimeofSale=11:27:53 LaptopModel=AP3965 UnitsSold=5
I have monthly data starts from 01/11/2009 and continue till 29/11/2009. I need to get summary data for each week and so have used the week().Kindly suggest the correction in code.
regards ,
markc