The SAS Output Delivery System and reporting techniques

ODS csv

Reply
Established User
Posts: 1

ODS csv

I am running below program it is crating csv file but it is empty, i able to see output in EG(output dataset).

ods CSVALL file="/home/xxx/myoutput1.csv";

data sapmle1;
set sample;
/*date= MONTH(birth);*/
today=date();
/*monthoftoday=MONTH(today);*/
totledays=(today-birth);
if totledays<=180;
format today ddmmyy.;

run;
ods CSVALL close;

Super User
Super User
Posts: 7,695

Re: ODS csv

You have no output creating procedure.  Datasteps create datasets, they don't create output.  You shoul use proc print or report or something simliar to create output:

ods csvall file="c:\myoutput1.csv";
proc print data=sashelp.class;
run;
ods csvall close;
Ask a Question
Discussion stats
  • 1 reply
  • 606 views
  • 2 likes
  • 2 in conversation