Syntax, PUT statement
using list output:
PUT variable <:
format>;
|
data _null_;
set sasuser.finance;
file 'c:datafindat.txt';
put ssn name salary date : date9.;
run;
proc print data=sasuser.finance noobs;
run;
data _null_;
set sasuser.finance;
file 'c:datafindat2' dlm=',';
put ssn name salary date : date9.;
run;
Syntax, PROC EXPORT:
PROC EXPORT DATA=SAS-data-set;
OUTFILE=filename <DELIMITER='delimiter'>;
RUN;
|
data _null_; set sasuser.finance; file 'c:datafindat2' dlm=','; put ssn name salary : comma6. date : date9.; run;
data _null_;
set sasuser.finance;
file 'c:datafindat2' dsd;
put ssn name salary : comma. date : date9.;
run;