l1i2n3i4n5g 发表于 2020-3-30 10:08 
执行过程需要多长时间?
地址里面,有的是换行(LF),有的是回车换行(CRLF),所以termstr=CRLF无法正 ...
嗯,时间是有点长,1小时40分钟,(计算机配置:win10,32G内存,CPU i7-6700),但我还是能接受,毕竟总比导入有错误强。
我试过Python,用这个测试数据导入就没问题,只有sas这样。
我的数据是近80条观测,1300多个变量,具体执行的时间如下:
(NOTE: The data set WORK.TEST has 793411 observations and 1354 variables.)
58 data _null_;
59 infile 'E:\b37a0829-38ed-4b9a-9d5d-ca080d48c8c9.csv' recfm=n sharebuffers;
60 file 'E:\b37a0829-38ed-4b9a-9d5d-ca080d48c8c9.csv' recfm=n;
61 input a $char1.;
62 retain open 0;
63 /* toggle the open flag */
64 if a='"' then open=not open;
65 if a='0A'x and open then put ' ';
66 run;
NOTE: UNBUFFERED is the default with RECFM=N.
NOTE: The file/infile 'E:\b37a0829-38ed-4b9a-9d5d-ca080d48c8c9.csv' is:
Filename=E:\b37a0829-38ed-4b9a-9d5d-ca080d48c8c9.csv,
RECFM=N,LRECL=256,File Size (bytes)=1860677420,
Last Modified=2020年02月19日 20时32分21秒,
Create Time=2020年03月28日 10时48分16秒
NOTE: UNBUFFERED is the default with RECFM=N.
NOTE: DATA statement used (Total process time):
real time 1:39:54.34
cpu time 1:39:48.00