DATA uspresidents;
Infile 'F:\SAS\testbook1\Presidents.dat';
;
RUN;
PROC print data=uspresidents;
RUN
;
为什么我把Presidents.dat中的数据改动以后,打印出来的数据却是没改之前的?
数据为:
Adams F 2
Lincoln R 16
Grant R 18
Kennedy D 35
运行一次以后,我把最后一个的35改为36:
Adams F 2
Lincoln R 16
Grant R 18
Kennedy D 36
但是打印出来的结果却还是显示35,为什么?
LOG中显示:
ERROR: Physical file does not exist, F:\SAS\testbook1\Presidents.dat.
NOTE: The SAS System stopped processing this step because of errors.
WARNING: The data set WORK.USPRESIDENTS may be incomplete. When this step was stopped there were 0 observations and 3 variables.
WARNING: Data set WORK.USPRESIDENTS was not replaced because this step was stopped.
可是路径明明就是对的呀。。。
补充1:数据肯定没有被重新读入,我将uspresidents改为uspresidents1,运行后打开work中新生成的uspresidents1,显示只有0个数据