m*******g 发帖数: 3044 | 1 我要把TEXT文件导入SAS里,以下是我的CODE:
proc import datafile="P:\ClaimsData.text" out=sasuser.claim1;
run;
错误显示是:
ERROR: Unable to determine datasource type. Please use the DBMS= option.
请问我该怎么改?
我的TEXT文见里有10万个数据. 是用"|"这个符号分隔的,我用SAS IMPORT WIZARD功能
导入进去了,但都是乱的呀.
谢谢 |
h******e 发帖数: 1791 | 2 google这个DBMS= option是怎么用的。 |
s*****d 发帖数: 2667 | 3 proc import datafile="P:\ClaimsData.text" out=sasuser.claim1;
~~~~~~~~~~~~~~~~~~~~~~~~~~.txt~~~~~~~~~~~
DBMS = identifier REPLACE;
run;
identifiers:
Tab-delimited .txt: TAB
Delimiters other than commas or tabs: DLM |
m*******g 发帖数: 3044 | 4 ?? this code can not work ya? |
s********p 发帖数: 637 | 5 if you know the layout of this text file, you had better use infile in
datastep to avoid any potential data reading error.
【在 m*******g 的大作中提到】 : 我要把TEXT文件导入SAS里,以下是我的CODE: : proc import datafile="P:\ClaimsData.text" out=sasuser.claim1; : run; : 错误显示是: : ERROR: Unable to determine datasource type. Please use the DBMS= option. : 请问我该怎么改? : 我的TEXT文见里有10万个数据. 是用"|"这个符号分隔的,我用SAS IMPORT WIZARD功能 : 导入进去了,但都是乱的呀. : 谢谢
|
N****n 发帖数: 1208 | 6 .txt file不是用infile来读入的吗?
【在 m*******g 的大作中提到】 : 我要把TEXT文件导入SAS里,以下是我的CODE: : proc import datafile="P:\ClaimsData.text" out=sasuser.claim1; : run; : 错误显示是: : ERROR: Unable to determine datasource type. Please use the DBMS= option. : 请问我该怎么改? : 我的TEXT文见里有10万个数据. 是用"|"这个符号分隔的,我用SAS IMPORT WIZARD功能 : 导入进去了,但都是乱的呀. : 谢谢
|
S******y 发帖数: 1123 | 7 You might want to consider use Python to render your raw file into a
better-behaved text file first. |
m*******g 发帖数: 3044 | |