BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
havmaage
Obsidian | Level 7

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 

 

 

 

1 ACCEPTED SOLUTION
3 REPLIES 3
Ksharp
Super User
Try:

libname old v6 "s:\work";
ballardw
Super User

@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.

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

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!

Register Now

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 3 replies
  • 1645 views
  • 4 likes
  • 4 in conversation