Just a quick note for all of the posters that are commenting on the fact the the original code created two librefs pointing to the same location. The default FMTSEARCH settings for SAS will look for a catalog named LIBRARY.FORMATS to find user defined formats. So it is/was standard coding practice to create a libref named LIBRARY that pointer to your project folder to find your project specific format catalog.
One way to do this that does not require creating the LIBRARY libref is to instead use the FTMSEARCH option to tell SAS to look for formats in the STATDATA.FORMATS catalog instead.
... View more