BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
SASuserlot
Barite | Level 11

I am working on a dataset that was created like 14-15 years back. I was trying run the program just to copy the dataset. However I am having the following troubles

 

 

2. I tried the following code, I can see the formats folder in the path folder and as well as sas explorer in libref library with red dot

SASuserlot_0-1651673486164.png

 

LIBNAME libref 'c\descktop\sdk';
PROC FORMAT LIB=libref.formats;
OPTIONS FMTSEARCH=(libref.formats);

When I run the above code I am getting  Error: ERROR: Write access to member LIBREF.FORMATS.CATALOG is denied.

 

 

data days;
set lbref.days1;
run;

When I run the dataset code I am getting this Error. ERROR: File LIBREF.FORMATS.CATALOG was created for a different operating system.

Without format code. In the log file I am getting following note: Format VISIT was not found or could not be loaded

1 ACCEPTED SOLUTION

Accepted Solutions
Reeza
Super User

You can use the NOFMTERR option to suppress the errors but you will not be able to see the formatted variables. Format catalogs do not convert across OS systems so you will need to recreate the formats. If you have the code or CNTLOUT data sets this should be doable otherwise you may be unable to recreate the catalogue.

 

https://stats.oarc.ucla.edu/sas/faq/how-do-i-read-a-sas-data-file-when-i-dont-have-its-format-librar...

 

https://support.sas.com/kb/7/311.html

 

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1djbl02hfnoe3n0zh2i3uu2aqrf.htm

 

 

 

 

View solution in original post

1 REPLY 1
Reeza
Super User

You can use the NOFMTERR option to suppress the errors but you will not be able to see the formatted variables. Format catalogs do not convert across OS systems so you will need to recreate the formats. If you have the code or CNTLOUT data sets this should be doable otherwise you may be unable to recreate the catalogue.

 

https://stats.oarc.ucla.edu/sas/faq/how-do-i-read-a-sas-data-file-when-i-dont-have-its-format-librar...

 

https://support.sas.com/kb/7/311.html

 

https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1djbl02hfnoe3n0zh2i3uu2aqrf.htm

 

 

 

 

SAS Innovate 2025: Call for Content

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!

Submit your idea!

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 804 views
  • 1 like
  • 2 in conversation