# Read decimal values in SAS

For this dataset:

data my;
input x y;
datalines;
-122.413582861209 37.7828877716232
-122.417876547159 37.7848288325307
;
proc print;
run;


The output and related tables are:

How can I import, save and use these values to their maximum precision?

-
Try using FORMAT x y 17.12; either in the data step to set it permanently, or in the PROC PRINT step to set it temporarily.
Note that FORMAT x y 17.12 will show both x and y as 17 characters long (including the decimal and, when present, the negative sign), and 12 of those characters will be digits after the decimal point. Numbers with more characters or greater decimal precision may not display correctly. –  Firefeather Dec 10 '10 at 21:57