I've got summary data, trying to create a report with Proc Report, with two Across variables.
i've included some stipped down sample data - i can create two reports separately, but can't figure out how to put them together.
any suggestions would be greatly appreaciated!
Dave
data a; input grade type1 $ count1 type2a $ type2b $ count2; cards; 1 A1 1 . . . 1 B1 1 . . . 1 C1 1 . . . 1 . . A2 A2a 1 1 . . A2 A2b 1 ; run;
title1 'type1 - works fine'; proc report data=a; columns ("Grade" grade) type1,(count1); define grade/' ' group; define type1/' ' across; define count1/' ' sum; run;
title1 'type2a/type2b - works fine'; proc report data=a; columns ("Grade" grade) type2a, type2b,(count2); define grade/' ' group; define type2a/' ' across; define type2b/' ' across; define count2/' ' sum; run;
title1 "Doesn't Work"; proc report data=a; columns ("Grade" grade) (type1,(count1)) (type2a, type2b,(count2)); define grade/' ' group; define type1/' ' across; define count1/' ' sum; define type2a/' ' across; define type2b/' ' across; define count2/' ' sum; run;
... View more