/*------------------------------------------------------------------------------------*/ /*by Jean Roth Wed Mar 28 14:51:28 EST 2001 Please report errors to jroth@nber.org Make two changes: (1) specify the output file location in the 'libname' statement (2) specify the input file name/location & year in the 'filename' statement Other changes may be user and platform specific. */ /*------------------------------------------------------------------------------------*/ *options obs=100; options compress=yes; *change compress=no if using a conversion package such as stat/transfer; options formdlim = " "; libname out '/tmp/'; /* Note: some value labels are longer than 32 characters */ PROC FORMAT; ; VALUE P19L (default=32) 0 = "invalid code [1964-67, 1972]" 16 = "Connecticut" 19 = "ME, MA, NH, RI, VT" 21 = "New York" 22 = "New Jersey" 23 = "Pennsylvania" 31 = "Ohio" 32 = "Indiana" 33 = "Illinois" 39 = "Michigan, Wisconsin" 49 = "IA, KS, MN, MO, NE, ND, SD" 53 = "Washington, D. C." 57 = "DE, MD, WV, VA" 58 = "Georgia, NC, SC" 59 = "Florida" 67 = "Kentucky, Tennessee" 69 = "Alabama, Mississippi" 72 = "Texas" 79 = "Arkansas, Louisiana, Oklahoma" 89 = "AZ, CO, ID, MT, NV, NM, UT, WY" 92 = "California" 99 = "Alaska, Hawaii, Oregon, Washington" ; filename raw pipe "zcat /home/data/mare_winship/cpsmw81.Z "; data temp; infile raw lrecl = 386 missover ; INPUT @77 smsasta 1. @78 state 2. @80 state1 2. ; LABEL smsasta = "SMSA Status" state = "State" state1 = "STATE-I" ; FORMAT state1 P19L. ; *proc print data=temp (obs=6); proc freq data=temp; tables state state1; *proc contents data=temp;