hi, my i have the variable date which has the below format :
date
2000 Q1 2000 Q2 2000 Q3 2000 Q4 2001 Q1 2001 Q2 2001 Q3 2001 Q4
and i need to convert it to 01/01/2000 format. I use the below
Data b; Set a; date = compress(date); date1= input(date,anydtdte32.); format date1 ddmmyy10.; drop date; rename date1=date; run;
However, i get the below results which is not correct as the months must be 3,6,9,12 for the different quarters and not 1,4,7,10.
Any help it would be appreciated
01/01/2000 01/04/2000 01/07/2000 01/10/2000 01/01/2001 01/04/2001 01/07/2001 01/10/2001
... View more