*options obs=100 ; options nocenter ; **------------------------------------------------; ** by Jean Roth Wed Jan 7 14:51:31 EST 2015 ** This program reads the 2008 SIPP Wave 12 Topical Module Research Data File ; ** Report errors to jroth@nber.org ; ** A value of -1 (or -1/# of implied decimals) indicates 'Not in Universe' ; ** This program is distributed under the GNU GPL. ; ** See end of this file and ** http://www.gnu.org/licenses/ for details. ; **-----------------------------------------------; * The following line should contain the directory where the SAS file is to be stored ; libname library "/homes/data/sipp/2008"; * The following line should contain the complete path and name of the raw data file. On a PC, use backslashes in paths as in C:\ ; FILENAME datafile pipe "unzip -p /homes/data/sipp/2008/rw08w12.zip "; * The following line should contain the name of the SAS dataset ; %let dataset = sipprw08w12 ; DATA library.&dataset ; INFILE datafile LRECL = 20000 ; ** ------------------------------------------------ ; ** The following variable names have been changed, ; ** if necessary: '$' to 'd', '-' to '_', '%' to 'p' ; ** ----------------------------------------------- ; attrib ssuid length=$12 label="SU: Sample Unit Identifier"; attrib spanel length=4 label="SU: Sample Code - Indicates Panel Year"; attrib swave length=3 label="SU: Wave of data collection"; attrib srefmon length=3 label="SU: Reference month of this record"; attrib epppnum length=$4 label="PE: Person number"; attrib repwgt1 length=8 label="WW: Person replicate weight 1"; attrib repwgt2 length=8 label="WW: Person replicate weight 2"; attrib repwgt3 length=8 label="WW: Person replicate weight 3"; attrib repwgt4 length=8 label="WW: Person replicate weight 4"; attrib repwgt5 length=8 label="WW: Person replicate weight 5"; attrib repwgt6 length=8 label="WW: Person replicate weight 6"; attrib repwgt7 length=8 label="WW: Person replicate weight 7"; attrib repwgt8 length=8 label="WW: Person replicate weight 8"; attrib repwgt9 length=8 label="WW: Person replicate weight 9"; attrib repwgt10 length=8 label="WW: Person replicate weight 10"; attrib repwgt11 length=8 label="WW: Person replicate weight 11"; attrib repwgt12 length=8 label="WW: Person replicate weight 12"; attrib repwgt13 length=8 label="WW: Person replicate weight 13"; attrib repwgt14 length=8 label="WW: Person replicate weight 14"; attrib repwgt15 length=8 label="WW: Person replicate weight 15"; attrib repwgt16 length=8 label="WW: Person replicate weight 16"; attrib repwgt17 length=8 label="WW: Person replicate weight 17"; attrib repwgt18 length=8 label="WW: Person replicate weight 18"; attrib repwgt19 length=8 label="WW: Person replicate weight 19"; attrib repwgt20 length=8 label="WW: Person replicate weight 20"; attrib repwgt21 length=8 label="WW: Person replicate weight 21"; attrib repwgt22 length=8 label="WW: Person replicate weight 22"; attrib repwgt23 length=8 label="WW: Person replicate weight 23"; attrib repwgt24 length=8 label="WW: Person replicate weight 24"; attrib repwgt25 length=8 label="WW: Person replicate weight 25"; attrib repwgt26 length=8 label="WW: Person replicate weight 26"; attrib repwgt27 length=8 label="WW: Person replicate weight 27"; attrib repwgt28 length=8 label="WW: Person replicate weight 28"; attrib repwgt29 length=8 label="WW: Person replicate weight 29"; attrib repwgt30 length=8 label="WW: Person replicate weight 30"; attrib repwgt31 length=8 label="WW: Person replicate weight 31"; attrib repwgt32 length=8 label="WW: Person replicate weight 32"; attrib repwgt33 length=8 label="WW: Person replicate weight 33"; attrib repwgt34 length=8 label="WW: Person replicate weight 34"; attrib repwgt35 length=8 label="WW: Person replicate weight 35"; attrib repwgt36 length=8 label="WW: Person replicate weight 36"; attrib repwgt37 length=8 label="WW: Person replicate weight 37"; attrib repwgt38 length=8 label="WW: Person replicate weight 38"; attrib repwgt39 length=8 label="WW: Person replicate weight 39"; attrib repwgt40 length=8 label="WW: Person replicate weight 40"; attrib repwgt41 length=8 label="WW: Person replicate weight 41"; attrib repwgt42 length=8 label="WW: Person replicate weight 42"; attrib repwgt43 length=8 label="WW: Person replicate weight 43"; attrib repwgt44 length=8 label="WW: Person replicate weight 44"; attrib repwgt45 length=8 label="WW: Person replicate weight 45"; attrib repwgt46 length=8 label="WW: Person replicate weight 46"; attrib repwgt47 length=8 label="WW: Person replicate weight 47"; attrib repwgt48 length=8 label="WW: Person replicate weight 48"; attrib repwgt49 length=8 label="WW: Person replicate weight 49"; attrib repwgt50 length=8 label="WW: Person replicate weight 50"; attrib repwgt51 length=8 label="WW: Person replicate weight 51"; attrib repwgt52 length=8 label="WW: Person replicate weight 52"; attrib repwgt53 length=8 label="WW: Person replicate weight 53"; attrib repwgt54 length=8 label="WW: Person replicate weight 54"; attrib repwgt55 length=8 label="WW: Person replicate weight 55"; attrib repwgt56 length=8 label="WW: Person replicate weight 56"; attrib repwgt57 length=8 label="WW: Person replicate weight 57"; attrib repwgt58 length=8 label="WW: Person replicate weight 58"; attrib repwgt59 length=8 label="WW: Person replicate weight 59"; attrib repwgt60 length=8 label="WW: Person replicate weight 60"; attrib repwgt61 length=8 label="WW: Person replicate weight 61"; attrib repwgt62 length=8 label="WW: Person replicate weight 62"; attrib repwgt63 length=8 label="WW: Person replicate weight 63"; attrib repwgt64 length=8 label="WW: Person replicate weight 64"; attrib repwgt65 length=8 label="WW: Person replicate weight 65"; attrib repwgt66 length=8 label="WW: Person replicate weight 66"; attrib repwgt67 length=8 label="WW: Person replicate weight 67"; attrib repwgt68 length=8 label="WW: Person replicate weight 68"; attrib repwgt69 length=8 label="WW: Person replicate weight 69"; attrib repwgt70 length=8 label="WW: Person replicate weight 70"; attrib repwgt71 length=8 label="WW: Person replicate weight 71"; attrib repwgt72 length=8 label="WW: Person replicate weight 72"; attrib repwgt73 length=8 label="WW: Person replicate weight 73"; attrib repwgt74 length=8 label="WW: Person replicate weight 74"; attrib repwgt75 length=8 label="WW: Person replicate weight 75"; attrib repwgt76 length=8 label="WW: Person replicate weight 76"; attrib repwgt77 length=8 label="WW: Person replicate weight 77"; attrib repwgt78 length=8 label="WW: Person replicate weight 78"; attrib repwgt79 length=8 label="WW: Person replicate weight 79"; attrib repwgt80 length=8 label="WW: Person replicate weight 80"; attrib repwgt81 length=8 label="WW: Person replicate weight 81"; attrib repwgt82 length=8 label="WW: Person replicate weight 82"; attrib repwgt83 length=8 label="WW: Person replicate weight 83"; attrib repwgt84 length=8 label="WW: Person replicate weight 84"; attrib repwgt85 length=8 label="WW: Person replicate weight 85"; attrib repwgt86 length=8 label="WW: Person replicate weight 86"; attrib repwgt87 length=8 label="WW: Person replicate weight 87"; attrib repwgt88 length=8 label="WW: Person replicate weight 88"; attrib repwgt89 length=8 label="WW: Person replicate weight 89"; attrib repwgt90 length=8 label="WW: Person replicate weight 90"; attrib repwgt91 length=8 label="WW: Person replicate weight 91"; attrib repwgt92 length=8 label="WW: Person replicate weight 92"; attrib repwgt93 length=8 label="WW: Person replicate weight 93"; attrib repwgt94 length=8 label="WW: Person replicate weight 94"; attrib repwgt95 length=8 label="WW: Person replicate weight 95"; attrib repwgt96 length=8 label="WW: Person replicate weight 96"; attrib repwgt97 length=8 label="WW: Person replicate weight 97"; attrib repwgt98 length=8 label="WW: Person replicate weight 98"; attrib repwgt99 length=8 label="WW: Person replicate weight 99"; attrib repwgt100 length=8 label="WW: Person replicate weight 100"; attrib repwgt101 length=8 label="WW: Person replicate weight 101"; attrib repwgt102 length=8 label="WW: Person replicate weight 102"; attrib repwgt103 length=8 label="WW: Person replicate weight 103"; attrib repwgt104 length=8 label="WW: Person replicate weight 104"; attrib repwgt105 length=8 label="WW: Person replicate weight 105"; attrib repwgt106 length=8 label="WW: Person replicate weight 106"; attrib repwgt107 length=8 label="WW: Person replicate weight 107"; attrib repwgt108 length=8 label="WW: Person replicate weight 108"; attrib repwgt109 length=8 label="WW: Person replicate weight 109"; attrib repwgt110 length=8 label="WW: Person replicate weight 110"; attrib repwgt111 length=8 label="WW: Person replicate weight 111"; attrib repwgt112 length=8 label="WW: Person replicate weight 112"; attrib repwgt113 length=8 label="WW: Person replicate weight 113"; attrib repwgt114 length=8 label="WW: Person replicate weight 114"; attrib repwgt115 length=8 label="WW: Person replicate weight 115"; attrib repwgt116 length=8 label="WW: Person replicate weight 116"; attrib repwgt117 length=8 label="WW: Person replicate weight 117"; attrib repwgt118 length=8 label="WW: Person replicate weight 118"; attrib repwgt119 length=8 label="WW: Person replicate weight 119"; attrib repwgt120 length=8 label="WW: Person replicate weight 120"; INPUT @1 ssuid $12. @13 spanel 4. @17 swave 2. @19 srefmon 1. @20 epppnum $4. @24 repwgt1 10.4 @34 repwgt2 10.4 @44 repwgt3 10.4 @54 repwgt4 10.4 @64 repwgt5 10.4 @74 repwgt6 10.4 @84 repwgt7 10.4 @94 repwgt8 10.4 @104 repwgt9 10.4 @114 repwgt10 10.4 @124 repwgt11 10.4 @134 repwgt12 10.4 @144 repwgt13 10.4 @154 repwgt14 10.4 @164 repwgt15 10.4 @174 repwgt16 10.4 @184 repwgt17 10.4 @194 repwgt18 10.4 @204 repwgt19 10.4 @214 repwgt20 10.4 @224 repwgt21 10.4 @234 repwgt22 10.4 @244 repwgt23 10.4 @254 repwgt24 10.4 @264 repwgt25 10.4 @274 repwgt26 10.4 @284 repwgt27 10.4 @294 repwgt28 10.4 @304 repwgt29 10.4 @314 repwgt30 10.4 @324 repwgt31 10.4 @334 repwgt32 10.4 @344 repwgt33 10.4 @354 repwgt34 10.4 @364 repwgt35 10.4 @374 repwgt36 10.4 @384 repwgt37 10.4 @394 repwgt38 10.4 @404 repwgt39 10.4 @414 repwgt40 10.4 @424 repwgt41 10.4 @434 repwgt42 10.4 @444 repwgt43 10.4 @454 repwgt44 10.4 @464 repwgt45 10.4 @474 repwgt46 10.4 @484 repwgt47 10.4 @494 repwgt48 10.4 @504 repwgt49 10.4 @514 repwgt50 10.4 @524 repwgt51 10.4 @534 repwgt52 10.4 @544 repwgt53 10.4 @554 repwgt54 10.4 @564 repwgt55 10.4 @574 repwgt56 10.4 @584 repwgt57 10.4 @594 repwgt58 10.4 @604 repwgt59 10.4 @614 repwgt60 10.4 @624 repwgt61 10.4 @634 repwgt62 10.4 @644 repwgt63 10.4 @654 repwgt64 10.4 @664 repwgt65 10.4 @674 repwgt66 10.4 @684 repwgt67 10.4 @694 repwgt68 10.4 @704 repwgt69 10.4 @714 repwgt70 10.4 @724 repwgt71 10.4 @734 repwgt72 10.4 @744 repwgt73 10.4 @754 repwgt74 10.4 @764 repwgt75 10.4 @774 repwgt76 10.4 @784 repwgt77 10.4 @794 repwgt78 10.4 @804 repwgt79 10.4 @814 repwgt80 10.4 @824 repwgt81 10.4 @834 repwgt82 10.4 @844 repwgt83 10.4 @854 repwgt84 10.4 @864 repwgt85 10.4 @874 repwgt86 10.4 @884 repwgt87 10.4 @894 repwgt88 10.4 @904 repwgt89 10.4 @914 repwgt90 10.4 @924 repwgt91 10.4 @934 repwgt92 10.4 @944 repwgt93 10.4 @954 repwgt94 10.4 @964 repwgt95 10.4 @974 repwgt96 10.4 @984 repwgt97 10.4 @994 repwgt98 10.4 @1004 repwgt99 10.4 @1014 repwgt100 10.4 @1024 repwgt101 10.4 @1034 repwgt102 10.4 @1044 repwgt103 10.4 @1054 repwgt104 10.4 @1064 repwgt105 10.4 @1074 repwgt106 10.4 @1084 repwgt107 10.4 @1094 repwgt108 10.4 @1104 repwgt109 10.4 @1114 repwgt110 10.4 @1124 repwgt111 10.4 @1134 repwgt112 10.4 @1144 repwgt113 10.4 @1154 repwgt114 10.4 @1164 repwgt115 10.4 @1174 repwgt116 10.4 @1184 repwgt117 10.4 @1194 repwgt118 10.4 @1204 repwgt119 10.4 @1214 repwgt120 10.4 ; **------------------------------------------------; ** The PROC FORMAT statement will store the formats ; ** in a sas data set called fsipprw08w12 ; ** To use the stored formats in a subsequent program, ; ** use code like the following; ** proc format cntlin=library.fspprw08w12; ** PROC freq; ** tables pesex ; ** format pesex P135L.; ** For more information, consult PROC FORMAT in the SAS Procedures Guide ; **-----------------------------------------------; PROC FORMAT cntlout=library.fspprw08w12; ; VALUE spanel (default=32) 2008 = "Panel Year" ; VALUE srefmon (default=32) 1 = "First Reference month" 2 = "Second Reference month" 3 = "Third Reference month" 4 = "Fourth Reference month" ; proc print data=library.sipprw08w12 (obs=6); FORMAT spanel spanel. srefmon srefmon. ; proc contents data=library.sipprw08w12; run; ** Copyright 2015 shared by the National Bureau of Economic Research and Jean Roth ; ** National Bureau of Economic Research. ; ** 1050 Massachusetts Avenue ; ** Cambridge, MA 02138 ; ** jroth@nber.org ; ** This program and all programs referenced in it are free software. You ; ** can redistribute the program or modify it under the terms of the GNU ; ** General Public License as published by the Free Software Foundation; ** either version 2 of the License, or (at your option) any later version. ; ** This program is distributed in the hope that it will be useful, ; ** but WITHOUT ANY WARRANTY, without even the implied warranty of ; ** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the ; ** GNU General Public License for more details. ; ** You should have received a copy of the GNU General Public License ; ** along with this program, if not, write to the Free Software ; ** Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. ;