对sas文件的修改
nls\en\SASV9.CFG
81行找到/* SAS/SHARE APPLSYS macro library pathname */-SET SASSAML !sasext0\share\sasmacro\在后面加入-DBCSLANG CHINESE-DBCS-DBCSTYPE PCMS180行处找到/* Setup the SAS System load image search paths definition */-PATH (在下一行插入 "!sasext0\dbcs\sasexe"重新打开就ok了-----------------
另外一个中文占两个字符。如果最长记录超出了默认值,则需要lrecl来约束
1 data mylearn.lijidaxue;2 infile 'F:\a.txt' lrecl=10000;3 input word $2.@@;4 run;5 proc print data=mylearn.lijidaxue;6 run;