/*------------------------------------------------------------------------------------*/ /*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 nocenter; options formdlim = " "; libname out '/tmp/'; filename raw pipe "zcat /home/data/mare_winship/cpsmw[678]?.Z "; data temp; infile raw lrecl = 386 missover ; INPUT @13 year 2. @238 famawgt 5. @243 fampwgt 5. @248 famwgtb 12. @260 hhwgt 11. @271 perawgt 5. @276 perpwgt 5. @281 suppwgt 12. @293 baswgt 11. ; LABEL famawgt = "Family A Weight" fampwgt = "Family P Weight" famwgtb = "Family Weight Basic" hhwgt = "Household Weight" perawgt = "Person A Weight" perpwgt = "Person P Weight" suppwgt = "Person Supplemental Weight" baswgt = "Basic CPS Weight" ; proc means data=temp; by year;