proc transpose data=sashelp.class out=class_t; id Name; *var Height Weight; run;
/* start the panelling */ ods tagsets.htmlpanel event = panel(start); title 'First proc Print'; proc print data=sashelp.class;run; title 'Second proc Print'; proc print data=sashelp.class;run; title 'Third proc Print'; proc print data=sashelp.class;run; /* Stop the current Panel */ ods tag...
/* Change the panel settings */ ods tagsets.htmlpanel options(panelcolumns='2' embedded_titles='no'); /* this bygroup get's a panel of it's own. */ title ; proc sort data=sashelp.class out=foo; by age; run; proc gchart data=foo; by age; h...
/* start a new, semi-automatic panel */ ods tagsets.htmlpanel event = panel(start); title 'Fourth proc Print'; proc print data=sashelp.class;run; title 'Fifth proc Print'; Footnote 'End of Fifth proc Print'; proc print data=sashelp.class;run; ods tagsets.htmlpanel event = panel(finish);
proc print data=sashelp.class;run; proc print data=sashelp.class;run; proc print data=sashelp.class;run;
ods graphics on; ods document name=MyDoc (write); proc reg data=sashelp.class; ods select diagnosticspanel; ods output diagnosticspanel=dp; model weight = height; quit; ods document close;
%macro defaults ; %* these defaults may be passed in, or else they default ; %if %symexist(dset)=0 %then %do; %global dset; %let dset=sashelp.class; %end; %mend defaults; %defaults
ods listing close; ods tagsets.counter file="counter.txt"; proc print data=sashelp.class; run; ods tagsets.counter close; ods listing;
DATA class; SET sashelp.class; const = 1; RUN;
ODS PROCLABEL="Figure 1: Class graphic"; PROC SGPLOT DATA = sashelp.class; VBAR age / GROUP = sex; TITLE 'Figure 1: Class overview by sex and age'; RUN;