*---Define all sas formats used in the (dese) coredata sets. Some confusion over whether to use numeric or character and whether the one was named mino or minority, so we just go ahead and create all possible values. jgb, 9-2001. and 11-2001 (here on oseda platform). ---*; libname sasctlgs clear; libname sasctlgs '/pub/sas/catalogs'; proc format library=sasctlgs; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $mobl 1='Less Than 10' 2='10 to 24' 3='25 or More' ; *---This format is used in the dese/coredata building and/or school data sets.----*; value $mocal /*8 CAT Format for variable MOCAL */ 1 = 'Large City' /* CMSA central city with population >= 250,000 */ 2 = 'Mid-Size City' /* CMSA central city with population < 250,000 */ 3 = 'Urban Fringe of Large City' 4 = 'Urban Fringe of Mid-Size City' 5 = 'Large Town' /* Town Population >= 25,000 and not in CMSA */ 6 = 'Small Town' /*Town Population < 25,000 and not in CMSA */ 7 = 'Rural Metro' 8 = 'Rural Non-Metro' ; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $sizeb 1='1-250' 2='251-500' 3='501 +' ; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $sized 1='1 - 200' 2='201 - 400' 3='401 - 800' 4='801 - 2000' 5='2001 - 6000' 6='6000 or More' ; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $minority 1='Less Than 1%' 2='1% to 9.9%' 3='10% to 24.9%' 4='25% or More' ; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $mino 1='Less Than 1%' 2='1% to 9.9%' 3='10% to 24.9%' 4='25% or More' ; *---This format is used in the dese/coredata building and/or school data sets.----*; VALUE $lunch 1='Less Than 25%' 2='25% to 49%' 3='50% or More' ; run; proc freq data=coredata.building; table mocal8 size mobile minority lunch; *--all these variables have permanent formats associated with them -- the ones we just generated.--; run;