Can anyone inform me how to pass parameters to the macro more than one time without calling the macro multiple times??
Here is 2 macros, first to create a PDF and second one to do the procure. (Need the fist macro to let all the outputs are on one pdf file)
/****************************/
/* FREQ MACRO */
/****************************/
%macro fre_pdf;
ods listing close;
ods pdf file="C:\FREQ.pdf";
options nobyline nodate;
%macro fre(fre1 =,
fre11 =);
proc freq data=one_hundred;
tables &fre1 * &fre11 / chisq;
title "&fre1 * &fre11";
run;
%mend;
%fre(fre1 = a,
fre11 = a);
%fre(fre1 = c,
fre11 = d);
%fre(fre1 = e,
fre11 = f);
%fre(fre1 = g,
fre11 = h);
%fre(fre1 = l,
fre11 = m);
%fre(fre1 = n,
fre11 = o);
ods pdf close;
ods pdf(id=d3dstyle) close;
%mend;
%fre_pdf;
Here is 2 macros, first to create a PDF and second one to do the procure. (Need the fist macro to let all the outputs are on one pdf file)
/****************************/
/* FREQ MACRO */
/****************************/
%macro fre_pdf;
ods listing close;
ods pdf file="C:\FREQ.pdf";
options nobyline nodate;
%macro fre(fre1 =,
fre11 =);
proc freq data=one_hundred;
tables &fre1 * &fre11 / chisq;
title "&fre1 * &fre11";
run;
%mend;
%fre(fre1 = a,
fre11 = a);
%fre(fre1 = c,
fre11 = d);
%fre(fre1 = e,
fre11 = f);
%fre(fre1 = g,
fre11 = h);
%fre(fre1 = l,
fre11 = m);
%fre(fre1 = n,
fre11 = o);
ods pdf close;
ods pdf(id=d3dstyle) close;
%mend;
%fre_pdf;