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: 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!

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.

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
  • 2 replies
  • 1792 views
  • 0 likes
  • 3 in conversation