1) I'm getting the invalid argument warning when I executed the following code and I see the value of sales_date as missing instead of '01DEC2022'd.
data test;
mon_intrvl='2022-12';
sales_date = input(mon_intrvl, date9.);
run;
2) How to convert any given date value to th start date of the month? For example if input date value is '22DEC2022' then I need the result as '01DEC2022'd. I tried the intnx function as below but it's not working.
data test;
start_date_edh = intnx("month",today(),"b");
run;
Warning which I got is,
NOTE: Character values have been converted to numeric values at the places given by: (Line):(Column).
82:40
NOTE: Invalid numeric data, 'b' , at line 82 column 40.
start_date_edh=. _ERROR_=1 _N_=1
Any help to resolve this?
... View more