This is what I used to test it: proc format; value dirlabel -1001 = 'N' -1002 = 'NNE' -1003 = 'NE' -1004 = 'ENE' -1005 = 'E' -1006 = 'ESE' -1007 = 'SE' -1008 = 'SSE' -1009 = 'S' -1010 = 'SSW' -1011 = 'SW' -1012 = 'WSW' -1013 = 'W' -1014 = 'WNW' -1015 = 'NW' -1016 = 'NNW'; run; data w1; prevwnd = -1017; wndclimoprevaidirectcode = put(prevwnd,dirlabel.); awind = -999; awind_code = put(awind,dirlabel.); bwind = -2000; bwind_code = put(bwind,dirlabel.); run; proc export data=w1 outfile="dirlabel_test.csv" replace;run;endsas; OUTPUT:prevwnd,wndclimoprevaidirectcode,awind,awind_code,bwind,bwind_code-1017,***,-999,***,-2000,***
... View more