t**i 发帖数: 688 | 1 我的数据是tab格式化的,几万列。都是字符变量,尽管是数字构成的。请教如何确保
SAS读入的时候采用字符型变量格式?
下面这个好像不行。
infile “myfile”firstobs=1 lrecl=1000000 truncover;
input v1 - v50000 $ ; |
t**s 发帖数: 156 | 2 try define the type of the variables first |
t**i 发帖数: 688 | 3 Example code? Like the following?
data test;
infile 'myfile' firstobs=1 dlm=',' lrecl=10000000 truncover;
length v1 - v50000 :$12 ;
input v1 - v50000;
run; |
t**s 发帖数: 156 | 4 yes. work?
【在 t**i 的大作中提到】 : Example code? Like the following? : data test; : infile 'myfile' firstobs=1 dlm=',' lrecl=10000000 truncover; : length v1 - v50000 :$12 ; : input v1 - v50000; : run;
|