benny10 发表于 2010-5-28 10:17 
请问各位前辈,sas在读檔时,最大的字段只能读到256个字符吗? 若超过的话该怎么办呢?不同版本在其限制上有差异吗?希望有前辈能帮忙解答一下,谢谢!
You need a length statement to define a string length. The maximum length is 32767 in SAS.
data _null_;
length a $32767;
a=repeat('a',32766);
len=length(a);
put len=;
run;