|
Is it possible to reuse a class variable, but with a different formatting at
the different class level ?
This sample code is close but hopefully missing a small something.
-----
data fins;
do date = today()-720 to today();
do storeid = 1 to 100;
actual = floor (1000 * ranuni(1234));
projected = actual + floor (125 * ranuni(1234)) - 50;
output;
end;
end;
run;
proc format;
value storeg
1-20 = 'A'
21-40 = 'B'
40-90 = 'C'
90-100 = 'D'
;
run;
proc tabulate data=fins;
class date storeid;
var actual projected;
format date year.;
format storeid storeg.;
table
storeid='region'
* storeid='store'*f=3.
,
date='year'
* (date='qtr'*f=qtr.)
* (actual*sum='' projected*sum='')
;
run;
--
Richard A. DeVenezia
http://www.devenezia.com/
|