SAS不同版本数据库兼容问题
客户(使用SAS8.2)收到我提供的SAS数据库(SAS9.4),说无法打开,
NOTE: The SAS System stopped processing this step because of errors. WARNING: The data set LIB.HELLO may be incomplete. When this step was stopped there were 0 observations and 0 variables.
网上寻找答案,说可以指定逻辑库的版本号,比如SAS8.2支持V7,
options validvarname=any; libname lib9 v9 "F:\data\v9"; libname lib8 v8 "F:\data\v8"; libname lib7 v7 "F:\data\v7"; libname lib6 v6 "F:\data\v6"; libname lib "F:\data"; data lib.rfm; set lib9.rfm; run; data lib8.rfm; set lib9.rfm; run; data lib7.rfm; set lib9.rfm; run; data lib6.rfm; set lib9.rfm; run;
使用v7生成的数据库,SAS8.2仍然不支持,我试着用SAS9.3来同样做了一遍,OK了。
备注:测试SAS8.2,SAS9.3和SAS9.4均只支持V6的读,不支持V6的写。