How did you check the CSV file?
PROC EXPORT should not change the values, but it will have to convert numbers into text to be able to make a text file, so the formats that are attached to the value will determine how the number is converted to text.
So for example if you run this program:
data have;
input id value;
cards;
1 10.895
2 45.42
;
filename csv temp;
proc export data=have file=csv dbms=csv;
run;
The CSV file you get looks like this:
id,value
1,10.895
2,45.42
But if you attach the format 5.1 to the VALUE variable then it will look like this:
id,value
1,10.9
2,45.4
Or if you attach the format Z8.4 you will instead get:
id,value
1,010.8950
2,045.4200
... View more