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
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
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://support.sas.com/kb/7/311.html
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1djbl02hfnoe3n0zh2i3uu2aqrf.htm
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://support.sas.com/kb/7/311.html
https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lesysoptsref/p1djbl02hfnoe3n0zh2i3uu2aqrf.htm
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 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.