HI ,
I made simple proc report like this:
proc report DATA=M_HAIM.TRANSPOSE_REINSURANCE ;
column _NAME_ period,REINSURANCE_COMP , ( &measures );
define _NAME_ / order=data group 'measures' format=$M_H_row. ;
define PERIOD/ order=data across 'PERIOD' NOZERO format=M_H_COLUMN. ;
define REINSURANCE_COMP / across '';
define "0"n / sum format=comma12.2 'no- REINSURANCE_COMP' ;
define A / sum format=comma12.2 'A ';
define C / sum format=comma12.2 'C ';
define D / sum format=comma12.2 'D ';
define P / sum format=comma12.2 'P ';
define RR / sum format=comma12.2 'RR ';
rbreak after/summarize;
compute after ;
_NAME_='total';
endcomp;
run;
my problem is : the measures are dynamic .
in each run i can get more/less/different measures.
using dictionary.columns table l can bring all the columns into macro var,
and then use it in the column statment.
but i dont know what to do with the define statment.....
any suggestions?
... View more