作者: ahuige 时间: 2016-1-18 09:28
/*excel d:\temp\ahuige.xlsx*/
/*******************/
/*123456789012345*/
/*987654321098765*/
/*9123456789012345*/
/***********************/
/*
if it is within 15 digits (smaller than 9,007,199,254,740,992) then the numerical var is precise.
bigger than that you just forget about it, since SAS sets a bar there.
*/
proc import datafile="d:\temp\ahuige.xlsx" out=MYEXCEL ;
getnames=no;
run;
data ahuige;
format num best25.;
set MYEXCEL;
num=input(F1,best25.);
put _all_;
run;作者: mich_ard 时间: 2016-1-26 03:20
是不是因为数值变量的default长度是12?加入一个这样的语句应该可以解决:
format x1 best20.