Friday, June 20, 2008

Use SAS ods data set output

Example is below:

ods trace on;
ods output summary=summary;
proc means data=hpd print N mean std min max median range sum;
run;

ods trace off;
ods output close;

Tuesday, June 17, 2008

Delete external file

%macro macdelfile(filename=);
data _NULL_;
fname = "tobedel";
rc = filename(fname, "&filename");
if (rc eq 0) and (fexist(fname)) then rc=fdelete(fname);
rc = filename(fname, '');
run;
%mend;

Monday, June 2, 2008