Building models with SAS Enterprise Miner, SAS Factory Miner, SAS Visual Data Mining and Machine Learning or just with programming

proc report

Reply
Occasional Contributor
Posts: 9

proc report

Having trouble getting this to work. I need the computed field and the other analysis fields to follow underneath the column variable

proc report data=data;

column  row1 row2  column1, (var1 var2 computevar);

define row1/ group  ;

define row2/ group  ;

define column1/ across ;

define var1/ analysis sum ;

define var2/ analysis sum ;

define computevar/ computed;

compute computevar;

computevar = var1.sum/var2.sum;

endcomp;

run;

Any ideas ?

Ask a Question
Discussion stats
  • 0 replies
  • 166 views
  • 0 likes
  • 1 in conversation