ERROR: The format XXXX was not found or could not be loaded.

This post was kindly contributed by StudySAS Blog - go there to comment and to read the full post.


Whenever you try to open a SAS data set which has permanent formats, you will get the error message in the log file saying

“ERROR: The format XXXX was not found or could not be loaded.”

This happens generally when you don’t have the format library where the SAS dataset located. What happens here is, SAS will not permit you to open the data set without the format library.

But, if you use options nofmterr; at the top of your program, SAS will opens the dataset for you despite the fact that it does not have the format library.

The FMTERR\NOFMTERR option determines whether or not SAS generates an error message when a variable’s format cannot be found. (source: support.sas.com)

The caveat here is, you will not be able to see the formatted values for your variables, but you will be able to open or use the dataset.

OPTIONS nofmterr;

*you will not be able to see the formatted values for your variables;

If you want to see the formatted values for the variables, you need…

[[ This is a content summary only. Visit my website for full links, other content, and more! ]]

This post was kindly contributed by StudySAS Blog - go there to comment and to read the full post.