zenny
2007-06-12 10:15:54 UTC
Hi guys,
I want to export sas dataset to a txt file. The code is:
data _null_;
set sc_dat;
file 'c:\temp\sc.dat' DSD;
put
value1 1-8
value2 9-16
value3 17-24
;
run;
this is fine to get the dat file, however, I want to keep two decimals
of each variable and the whole length is 8. should it be like this?
data _null_;
set sc_dat;
file 'c:\temp\sc.dat' DSD;
put
value1 1-8.2
value2 9-16.2
value3 17-24.2
;
run;
it doesn't work. How should I write the code?
Thanks,
Zenny
I want to export sas dataset to a txt file. The code is:
data _null_;
set sc_dat;
file 'c:\temp\sc.dat' DSD;
put
value1 1-8
value2 9-16
value3 17-24
;
run;
this is fine to get the dat file, however, I want to keep two decimals
of each variable and the whole length is 8. should it be like this?
data _null_;
set sc_dat;
file 'c:\temp\sc.dat' DSD;
put
value1 1-8.2
value2 9-16.2
value3 17-24.2
;
run;
it doesn't work. How should I write the code?
Thanks,
Zenny