1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
/* j'essaye de faire la première partie dans une macro, mais j'ai un problème, j'ouvrirai un autre post */
data _null_;
dset=open('global_t');
call symput ('chk1',varnum(dset,'count_P'));
run;
data _null_;
dset=open('global_t');
call symput ('chk2',varnum(dset,'count_Z5'));
run;
data _null_;
dset=open('global_t');
call symput ('chk3',varnum(dset,'count_Z10'));
run;
%mamacro(...);
proc report data=global&type;
column cod count_P count_Z5 count_Z10;
define cod / id display;
compute count_P;
if &chk1 ne 0 then do;
call define (_COL_,"style","style=[background=snow]");
end;
endcomp;
compute count_Z5;
if &chk2 ne 0 then do;
call define (_COL_,"style","style=[background=snow]");
end;
endcomp;
compute count_Z10;
if &chk3 ne 0 then do;
call define (_COL_,"style","style=[background=snow]");
end;
endcomp;
run;
%mend mamacro; |
Partager