我现在因为工作需要,需要学习sas,选用的是朱世武的《SAS软件编程技术》,然后从论坛下载的这本书的配套程序和资料。在学习期间我一直碰到这样的问题:可以再sas中打开下载的sas数据集,但是无法使用,具体如下:
/*以resdat下的stk000002.sas7dbat为例。可以在定义的逻辑库中双击打开,但是在其存放目录下无论如何打不开,不管是双击还是右键使用sas9.3打开都不行。还有,所有程序在调用stk.000002时也出现问题*/
data a;
set study.stk000002;
run;
log窗口出现如下提示:
89 data a;
90 set study.stk000002;
NOTE: Data file STUDY.STK000002.DATA is in a format that is native to another host, or the file encoding does not match
the session encoding. Cross Environment Data Access will be used, which might require additional CPU resources and
might reduce performance.
WARNING: Some character data was lost during transcoding in the dataset STUDY.STK000002. Either the data contains
characters that are not representable in the new encoding or truncation occurred during transcoding.
91 run;
ERROR: Some character data was lost during transcoding in the dataset WORK.A. Either the data contains characters that
are not representable in the new encoding or truncation occurred during transcoding.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.A may be incomplete. When this step was stopped there were 0 observations and 56 variables.
WARNING: Data set WORK.A was not replaced because this step was stopped.
NOTE: DATA statement used (Total process time):
real time 0.06 seconds
cpu time 0.00 seconds