I assume you wanted to apply the format to limit the display of non-significant precision in the numbers. You would probably have the best results by rounding the values to 4 decimal places and then letting SAS format the values using BEST format. data _null_; set mydata ; array f field1-field8 ; do over f; f=round(f,0.0001); end; file 'myfile.csv' dsd ; format field1-field8 ; put (_all_) (:) ; run;
... View more