SAS-How to NOPRINT in ODS CSV

587 views Asked by At

I have some sas code:

ods csv file="filename.csv"
%macro mac_name (st, en=); 
  %do j=1 %to &en.;
  %let k=%eval(&j.+1);
      proc freq data=data_name;
        tables status&j. * status&k. / nocol norow nopercent missing;
      run;
  %end;
%mend;
%mac_name (st=1, en=%sysfunc(week(%sysfunc(today()), u)));
ods csv close;

which works fine, but i need the results window not open. I have tried noprint in the proc freq but this stops the code executing at all.

Any ideas?

Thanks in advance!!

1

There are 1 answers

0
Sunny On

ods results off; ods results on;

above worked for me. Stopped the results tab opening.