Hi,
Im trying to read a dataset "application_data" created in sas 9.2 from my sas 9.4 env,
when running this
libname old "s:\work"; data read_old; set old.application_data; run;
I gives me the error
ERROR: File OLD.APPLICATION_DATA DATA not compatible with this SAS Version
I am able to read the dataset in SASEG 7.1
by open the dataset from the file menu
But i need to do this in code because im running in batch mode.
I have been looking at cport cimport but that did not solve my issue,
Any ideas
According to this: https://support.sas.com/kb/49/496.html , this message indicates that you are trying to read a dataset created with a newer SAS version in the older 9.2. Please check your involved SAS versions.
According to this: https://support.sas.com/kb/49/496.html , this message indicates that you are trying to read a dataset created with a newer SAS version in the older 9.2. Please check your involved SAS versions.
@havmaage wrote:
Hi,
Im trying to read a dataset "application_data" created in sas 9.2 from my sas 9.4 env,
when running this
libname old "s:\work"; data read_old; set old.application_data; run;I gives me the error
ERROR: File OLD.APPLICATION_DATA DATA not compatible with this SAS Version
I am able to read the dataset in SASEG 7.1
by open the dataset from the file menu
But i need to do this in code because im running in batch mode.
I have been looking at cport cimport but that did not solve my issue,
Any ideas
Do you have access to the 9.3 or later version of SAS that likely created the Old.application_data set?
If so you might get around this by creating a different data set using the option EXTENDOBSCOUNTER data set option. There is header information in later versions of SAS data sets that are not compatible with 32 bit systems likely used by SAS 9.2.
Run this in the 9.4 SAS system and use the old.app_data_noextobs.
data old.app_data_noextobs (extendobscounter=no); set old.application_data; run;
If you have many data sets to use might consider creating a new library and use the LIBNAME option extendobs=no. Then copy the data sets from OLD to that library using Proc Copy or Proc Datasets. The new library will not have the extended observation count range that is likely to be the issue. Again, the Libname would have to run on SAS 9.3 or later to use the option when files are created there.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Ready to level-up your skills? Choose your own adventure.