Help using Base SAS procedures

proc format

Accepted Solution Solved
Reply
Regular Contributor
Posts: 168
Accepted Solution

proc format

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


Accepted Solutions
Solution
‎08-26-2013 12:15 PM
Super User
Posts: 10,552

Re: proc format

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


All Replies
Solution
‎08-26-2013 12:15 PM
Super User
Posts: 10,552

Re: proc format

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.

Regular Contributor
Posts: 168

Re: proc format

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

Super Contributor
Posts: 394

Re: proc format

Super User
Posts: 10,552

Re: proc format

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.

🔒 This topic is solved and locked.

Need further help from the community? Please ask a new question.

Discussion stats
  • 4 replies
  • 443 views
  • 6 likes
  • 3 in conversation