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

Hi All,

i have a question on formats. we created som formate in 2009 version on sas is 8.2. now we are using sas9.2. now i am unable to read those formats

test code

libname  data "newdata" access=readonly;

libname  form "oldformatpath/formats' access=readonly;

proc format lib=work cntlin=form.formats;

options fmtsearch=(work);

getting error on log:

error:File form.formats.data does not exits.

How to read those old formats on new version. Any thoughts on this

Thanks

Sam

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

You probably need to create an output file from the formats in the FORM library first:

proc format library=form cntlout=work.cntlin; run; /8 actually I would put this in a permanent library but since the only ones you reference you have made readonly the dataset can't be created there*/

proc format library= work cntlin=work.cntlin;run;

You don't mention if the OS for the 8.2 version was the same as current. If not, there will be some other issues.

View solution in original post

4 REPLIES 4
ballardw
Super User

You probably need to create an output file from the formats in the FORM library first:

proc format library=form cntlout=work.cntlin; run; /8 actually I would put this in a permanent library but since the only ones you reference you have made readonly the dataset can't be created there*/

proc format library= work cntlin=work.cntlin;run;

You don't mention if the OS for the 8.2 version was the same as current. If not, there will be some other issues.

sam369
Obsidian | Level 7

Hi ballardw,

Thank you for your response , i applied what you suggested. i am getting error like

ERROR: File FORM.FORMATS.CATALOG was created for a different operating system.

now i am using on Unix. how to resolve this format issue

Thanks

Sam

ballardw
Super User

If you have a machine with the previous OS and a SAS license, then use that to create the CNTLOUT output data set from the library. Then create a transport data set and import to the Unix systm. Or find the code that created the formats.

I'm sure there are other methods as well.

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

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

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
  • 4 replies
  • 2197 views
  • 6 likes
  • 3 in conversation