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.

Develop Code with SAS Studio

Get started using SAS Studio to write, run and debug your SAS programs.

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
  • 2264 views
  • 0 likes
  • 3 in conversation