x cd /pub/data/popests/Tools; %let pgm=nchsbri_formats; filename pgm "&pgm..sas"; *--generate a formats catalog in the nchsbri subdirectory--; libname nchsbri "/pub/data/popests/nchsbri/"; proc format library=nchsbri; Value $age 00=' 0' 01=' 1' 02=' 2' 03='03' 04=' 4' 05=' 5' 06=' 6' 07=' 7' 08=' 8' 09=' 9' 85='85+'; Value $race 1='White' 2='Black' 3='Am Ind Esk' 4='Asian PI'; Value $sex 1='Male' 2='Female'; Value $hispanc 1='Non-Hisp' 2='Hispanic'; run; options fmtsearch=(nchsbri sasctlgs); proc freq data=nchsbri.aknchsbridged201x(obs=1000); table age race sex hispanic; format age $age. race $race. sex $sex. hispanic $hispanc.; run;