I am giving some clues, You can follow this : data have; input adj_code year value treatment $ state $; datalines; 0 2005 12 therap MI 1 2006 20 inpati CA 2 2007 22 inpati MI 1 2005 21 inpati MI 2 2005 22 therap CA 0 2005 10 therap CA 1 2006 19 inpati CA 2 2007 10 inpati MI 2 2006 20 therap CA 1 2006 11 inpati MI 0 2005 90 therap CA 0 2006 11 inpati MI 0 2005 99 therap MI ; run; proc format; value adj_code 0="0-NO ADJUSTMENT OF CLAIMS WAS REQUIRED" 1="1-AT LEAST ONE ORIGINAL CLAIM AND AT LEAST ONE ADJUSTMENT CLAIM" 2="2-NOT POSSIBLE TO COMPLETE THE ADJUSTMENT PROCESS"; value $treatment 'therap'="OTHER THERAPY PERCENTAGES" 'inpati'="INPATIENT PERCENTAGES"; run; ods escapechar='^'; ods pdf; proc report nowd data=have spanrows; title1 "Adjustment code claims 2.2.2, 2.3.2"; title2 "&statename., 0-18 years old"; title3 "2005-2007"; column state (adj_code) treatment,year,value;* year value treatment; define state/group; break after state/page; define adj_code/'Adjustment Code' group format=adj_code.; define treatment/''across order=internal format=$treatment.; define year/' 'across order=internal ; define value/'' sum; rbreak after/ summarize; run; ods pdf close;
... View more