Hi,
I have month variable which I initially taken in as 1,2,3,4...Later while doing proc report, I use proc format
but while printing out the report, the values get sorted by alphabets and not by month order.Is there a way to fix this to make sure that Jan comes on top and Dec comes last.
Any help would be appreciated
Proc format;
Value mth 1='Jan'
2='Feb'
3='Mar'
4='Apr'
5='May'
6='Jun'
7='Jul'
8='Aug'
9='Sep'
10='Oct'
11='Nov'
12='Dec'
;
define month / 'Month' group format= mth.;
Regards,
Nirmal
I have month variable which I initially taken in as 1,2,3,4...Later while doing proc report, I use proc format
but while printing out the report, the values get sorted by alphabets and not by month order.Is there a way to fix this to make sure that Jan comes on top and Dec comes last.
Any help would be appreciated
Proc format;
Value mth 1='Jan'
2='Feb'
3='Mar'
4='Apr'
5='May'
6='Jun'
7='Jul'
8='Aug'
9='Sep'
10='Oct'
11='Nov'
12='Dec'
;
define month / 'Month' group format= mth.;
Regards,
Nirmal