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
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.
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.
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
This note looks like it will help:
34443 - Determine the operating system in which a format catalog was created
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.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.