BookmarkSubscribeRSS Feed
agabru0
Fluorite | Level 6
Format $DESC has been written to library VARKVLEI.FORMATS. 

 data varkvlei.EXPENSES2017 (drop=year) varkvlei.EXPENSES2018 (drop=year);
set expenses;
length category $35.;
year = put(date,year4.);
finyear2017 = '01mar2018'd;
format category $desc.;
/*category = PUT(recipient,$DESC);*/
if date < finyear2017 then output varkvlei.EXPENSES2017;
 else
  output varkvlei.EXPENSES2018;
run; 
 
NOTE 484-185: Format $DESC was not found or could not be loaded.
 
2 REPLIES 2
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Have you set options fmtsearch?

http://support.sas.com/documentation/cdl/en/lrdict/64316/HTML/default/viewer.htm#a000279102.htm

Post full log of proc format and datastep if so.

Astounding
PROC Star

Notice the first line of what you posted.  This means you have to add (at the beginning of your program):

 

options fmtsearch=(varkvlei.formats, library.formats);

 

Otherwise, SAS will look in the wrong place to try to find $DESC.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

SAS Enterprise Guide vs. SAS Studio

What’s the difference between SAS Enterprise Guide and SAS Studio? How are they similar? Just ask SAS’ Danny Modlin.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 2 replies
  • 1858 views
  • 0 likes
  • 3 in conversation