*options obs=100 ; options nocenter ; **------------------------------------------------; ** by Jean Roth Wed Sep 3 16:08:26 EDT 2014 ** This program reads the 1996 SIPP Longitudinal Replicate Weight File for All Panel Year 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/1996"; * 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/1996/lrw96pnl.zip "; * The following line should contain the name of the SAS dataset ; %let dataset = sipp1996lrw96pnl ; 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 ctl_date length=$7 label="Date of the controls to which weights correspond"; attrib lgtwttyp length=$3 label="Weighting designation describing the longitudinal period for which the"; attrib pnllength length=3 label=""; attrib epppnum length=$4 label=""; attrib repwgt1 length=8 label="WW: Person replicate weight 1. (Four implied decimal positions)"; attrib repwgt2 length=8 label="WW: Person replicate weight 2. (Four implied decimal positions)"; attrib repwgt3 length=8 label="WW: Person replicate weight 3. (Four implied decimal positions)"; attrib repwgt4 length=8 label="WW: Person replicate weight 4. (Four implied decimal positions)"; attrib repwgt5 length=8 label="WW: Person replicate weight 5. (Four implied decimal positions)"; attrib repwgt6 length=8 label="WW: Person replicate weight 6. (Four implied decimal positions)"; attrib repwgt7 length=8 label="WW: Person replicate weight 7. (Four implied decimal positions)"; attrib repwgt8 length=8 label="WW: Person replicate weight 8. (Four implied decimal positions)"; attrib repwgt9 length=8 label="WW: Person replicate weight 9. (Four implied decimal positions)"; attrib repwgt10 length=8 label="WW: Person replicate weight 10. (Four implied decimal positions)"; attrib repwgt11 length=8 label="WW: Person replicate weight 11. (Four implied decimal positions)"; attrib repwgt12 length=8 label="WW: Person replicate weight 12. (Four implied decimal positions)"; attrib repwgt13 length=8 label="WW: Person replicate weight 13. (Four implied decimal positions)"; attrib repwgt14 length=8 label="WW: Person replicate weight 14. (Four implied decimal positions)"; attrib repwgt15 length=8 label="WW: Person replicate weight 15. (Four implied decimal positions)"; attrib repwgt16 length=8 label="WW: Person replicate weight 16. (Four implied decimal positions)"; attrib repwgt17 length=8 label="WW: Person replicate weight 17. (Four implied decimal positions)"; attrib repwgt18 length=8 label="WW: Person replicate weight 18. (Four implied decimal positions)"; attrib repwgt19 length=8 label="WW: Person replicate weight 19. (Four implied decimal positions)"; attrib repwgt20 length=8 label="WW: Person replicate weight 20. (Four implied decimal positions)"; attrib repwgt21 length=8 label="WW: Person replicate weight 21. (Four implied decimal positions)"; attrib repwgt22 length=8 label="WW: Person replicate weight 22. (Four implied decimal positions)"; attrib repwgt23 length=8 label="WW: Person replicate weight 23. (Four implied decimal positions)"; attrib repwgt24 length=8 label="WW: Person replicate weight 24. (Four implied decimal positions)"; attrib repwgt25 length=8 label="WW: Person replicate weight 25. (Four implied decimal positions)"; attrib repwgt26 length=8 label="WW: Person replicate weight 26. (Four implied decimal positions)"; attrib repwgt27 length=8 label="WW: Person replicate weight 27. (Four implied decimal positions)"; attrib repwgt28 length=8 label="WW: Person replicate weight 28. (Four implied decimal positions)"; attrib repwgt29 length=8 label="WW: Person replicate weight 29. (Four implied decimal positions)"; attrib repwgt30 length=8 label="WW: Person replicate weight 30. (Four implied decimal positions)"; attrib repwgt31 length=8 label="WW: Person replicate weight 31. (Four implied decimal positions)"; attrib repwgt32 length=8 label="WW: Person replicate weight 32. (Four implied decimal positions)"; attrib repwgt33 length=8 label="WW: Person replicate weight 33. (Four implied decimal positions)"; attrib repwgt34 length=8 label="WW: Person replicate weight 34. (Four implied decimal positions)"; attrib repwgt35 length=8 label="WW: Person replicate weight 35. (Four implied decimal positions)"; attrib repwgt36 length=8 label="WW: Person replicate weight 36. (Four implied decimal positions)"; attrib repwgt37 length=8 label="WW: Person replicate weight 37. (Four implied decimal positions)"; attrib repwgt38 length=8 label="WW: Person replicate weight 38. (Four implied decimal positions)"; attrib repwgt39 length=8 label="WW: Person replicate weight 39. (Four implied decimal positions)"; attrib repwgt40 length=8 label="WW: Person replicate weight 40. (Four implied decimal positions)"; attrib repwgt41 length=8 label="WW: Person replicate weight 41. (Four implied decimal positions)"; attrib repwgt42 length=8 label="WW: Person replicate weight 42. (Four implied decimal positions)"; attrib repwgt43 length=8 label="WW: Person replicate weight 43. (Four implied decimal positions)"; attrib repwgt44 length=8 label="WW: Person replicate weight 44. (Four implied decimal positions)"; attrib repwgt45 length=8 label="WW: Person replicate weight 45. (Four implied decimal positions)"; attrib repwgt46 length=8 label="WW: Person replicate weight 46. (Four implied decimal positions)"; attrib repwgt47 length=8 label="WW: Person replicate weight 47. (Four implied decimal positions)"; attrib repwgt48 length=8 label="WW: Person replicate weight 48. (Four implied decimal positions)"; attrib repwgt49 length=8 label="WW: Person replicate weight 49. (Four implied decimal positions)"; attrib repwgt50 length=8 label="WW: Person replicate weight 50. (Four implied decimal positions)"; attrib repwgt51 length=8 label="WW: Person replicate weight 51. (Four implied decimal positions)"; attrib repwgt52 length=8 label="WW: Person replicate weight 52. (Four implied decimal positions)"; attrib repwgt53 length=8 label="WW: Person replicate weight 53. (Four implied decimal positions)"; attrib repwgt54 length=8 label="WW: Person replicate weight 54. (Four implied decimal positions)"; attrib repwgt55 length=8 label="WW: Person replicate weight 55. (Four implied decimal positions)"; attrib repwgt56 length=8 label="WW: Person replicate weight 56. (Four implied decimal positions)"; attrib repwgt57 length=8 label="WW: Person replicate weight 57. (Four implied decimal positions)"; attrib repwgt58 length=8 label="WW: Person replicate weight 58. (Four implied decimal positions)"; attrib repwgt59 length=8 label="WW: Person replicate weight 59. (Four implied decimal positions)"; attrib repwgt60 length=8 label="WW: Person replicate weight 60. (Four implied decimal positions)"; attrib repwgt61 length=8 label="WW: Person replicate weight 61. (Four implied decimal positions)"; attrib repwgt62 length=8 label="WW: Person replicate weight 62. (Four implied decimal positions)"; attrib repwgt63 length=8 label="WW: Person replicate weight 63. (Four implied decimal positions)"; attrib repwgt64 length=8 label="WW: Person replicate weight 64. (Four implied decimal positions)"; attrib repwgt65 length=8 label="WW: Person replicate weight 65. (Four implied decimal positions)"; attrib repwgt66 length=8 label="WW: Person replicate weight 66. (Four implied decimal positions)"; attrib repwgt67 length=8 label="WW: Person replicate weight 67. (Four implied decimal positions)"; attrib repwgt68 length=8 label="WW: Person replicate weight 68. (Four implied decimal positions)"; attrib repwgt69 length=8 label="WW: Person replicate weight 69. (Four implied decimal positions)"; attrib repwgt70 length=8 label="WW: Person replicate weight 70. (Four implied decimal positions)"; attrib repwgt71 length=8 label="WW: Person replicate weight 71. (Four implied decimal positions)"; attrib repwgt72 length=8 label="WW: Person replicate weight 72. (Four implied decimal positions)"; attrib repwgt73 length=8 label="WW: Person replicate weight 73. (Four implied decimal positions)"; attrib repwgt74 length=8 label="WW: Person replicate weight 74. (Four implied decimal positions)"; attrib repwgt75 length=8 label="WW: Person replicate weight 75. (Four implied decimal positions)"; attrib repwgt76 length=8 label="WW: Person replicate weight 76. (Four implied decimal positions)"; attrib repwgt77 length=8 label="WW: Person replicate weight 77. (Four implied decimal positions)"; attrib repwgt78 length=8 label="WW: Person replicate weight 78. (Four implied decimal positions)"; attrib repwgt79 length=8 label="WW: Person replicate weight 79. (Four implied decimal positions)"; attrib repwgt80 length=8 label="WW: Person replicate weight 80. (Four implied decimal positions)"; attrib repwgt81 length=8 label="WW: Person replicate weight 81. (Four implied decimal positions)"; attrib repwgt82 length=8 label="WW: Person replicate weight 82. (Four implied decimal positions)"; attrib repwgt83 length=8 label="WW: Person replicate weight 83. (Four implied decimal positions)"; attrib repwgt84 length=8 label="WW: Person replicate weight 84. (Four implied decimal positions)"; attrib repwgt85 length=8 label="WW: Person replicate weight 85. (Four implied decimal positions)"; attrib repwgt86 length=8 label="WW: Person replicate weight 86. (Four implied decimal positions)"; attrib repwgt87 length=8 label="WW: Person replicate weight 87. (Four implied decimal positions)"; attrib repwgt88 length=8 label="WW: Person replicate weight 88. (Four implied decimal positions)"; attrib repwgt89 length=8 label="WW: Person replicate weight 89. (Four implied decimal positions)"; attrib repwgt90 length=8 label="WW: Person replicate weight 90. (Four implied decimal positions)"; attrib repwgt91 length=8 label="WW: Person replicate weight 91. (Four implied decimal positions)"; attrib repwgt92 length=8 label="WW: Person replicate weight 92. (Four implied decimal positions)"; attrib repwgt93 length=8 label="WW: Person replicate weight 93. (Four implied decimal positions)"; attrib repwgt94 length=8 label="WW: Person replicate weight 94. (Four implied decimal positions)"; attrib repwgt95 length=8 label="WW: Person replicate weight 95. (Four implied decimal positions)"; attrib repwgt96 length=8 label="WW: Person replicate weight 96. (Four implied decimal positions)"; attrib repwgt97 length=8 label="WW: Person replicate weight 97. (Four implied decimal positions)"; attrib repwgt98 length=8 label="WW: Person replicate weight 98. (Four implied decimal positions)"; attrib repwgt99 length=8 label="WW: Person replicate weight 99. (Four implied decimal positions)"; attrib repwgt100 length=8 label="WW: Person replicate weight 100. (Four implied decimal positions)"; attrib repwgt101 length=8 label="WW: Person replicate weight 101. (Four implied decimal positions)"; attrib repwgt102 length=8 label="WW: Person replicate weight 102. (Four implied decimal positions)"; attrib repwgt103 length=8 label="WW: Person replicate weight 103. (Four implied decimal positions)"; attrib repwgt104 length=8 label="WW: Person replicate weight 104. (Four implied decimal positions)"; attrib repwgt105 length=8 label="WW: Person replicate weight 105. (Four implied decimal positions)"; attrib repwgt106 length=8 label="WW: Person replicate weight 106. (Four implied decimal positions)"; attrib repwgt107 length=8 label="WW: Person replicate weight 107. (Four implied decimal positions)"; attrib repwgt108 length=8 label="WW: Person replicate weight 108. (Four implied decimal positions)"; INPUT @1 ssuid $12. @13 spanel 4. @17 ctl_date $7. @24 lgtwttyp $3. @27 pnllength 2. @29 epppnum $4. @33 repwgt1 10.4 @43 repwgt2 10.4 @53 repwgt3 10.4 @63 repwgt4 10.4 @73 repwgt5 10.4 @83 repwgt6 10.4 @93 repwgt7 10.4 @103 repwgt8 10.4 @113 repwgt9 10.4 @123 repwgt10 10.4 @133 repwgt11 10.4 @143 repwgt12 10.4 @153 repwgt13 10.4 @163 repwgt14 10.4 @173 repwgt15 10.4 @183 repwgt16 10.4 @193 repwgt17 10.4 @203 repwgt18 10.4 @213 repwgt19 10.4 @223 repwgt20 10.4 @233 repwgt21 10.4 @243 repwgt22 10.4 @253 repwgt23 10.4 @263 repwgt24 10.4 @273 repwgt25 10.4 @283 repwgt26 10.4 @293 repwgt27 10.4 @303 repwgt28 10.4 @313 repwgt29 10.4 @323 repwgt30 10.4 @333 repwgt31 10.4 @343 repwgt32 10.4 @353 repwgt33 10.4 @363 repwgt34 10.4 @373 repwgt35 10.4 @383 repwgt36 10.4 @393 repwgt37 10.4 @403 repwgt38 10.4 @413 repwgt39 10.4 @423 repwgt40 10.4 @433 repwgt41 10.4 @443 repwgt42 10.4 @453 repwgt43 10.4 @463 repwgt44 10.4 @473 repwgt45 10.4 @483 repwgt46 10.4 @493 repwgt47 10.4 @503 repwgt48 10.4 @513 repwgt49 10.4 @523 repwgt50 10.4 @533 repwgt51 10.4 @543 repwgt52 10.4 @553 repwgt53 10.4 @563 repwgt54 10.4 @573 repwgt55 10.4 @583 repwgt56 10.4 @593 repwgt57 10.4 @603 repwgt58 10.4 @613 repwgt59 10.4 @623 repwgt60 10.4 @633 repwgt61 10.4 @643 repwgt62 10.4 @653 repwgt63 10.4 @663 repwgt64 10.4 @673 repwgt65 10.4 @683 repwgt66 10.4 @693 repwgt67 10.4 @703 repwgt68 10.4 @713 repwgt69 10.4 @723 repwgt70 10.4 @733 repwgt71 10.4 @743 repwgt72 10.4 @753 repwgt73 10.4 @763 repwgt74 10.4 @773 repwgt75 10.4 @783 repwgt76 10.4 @793 repwgt77 10.4 @803 repwgt78 10.4 @813 repwgt79 10.4 @823 repwgt80 10.4 @833 repwgt81 10.4 @843 repwgt82 10.4 @853 repwgt83 10.4 @863 repwgt84 10.4 @873 repwgt85 10.4 @883 repwgt86 10.4 @893 repwgt87 10.4 @903 repwgt88 10.4 @913 repwgt89 10.4 @923 repwgt90 10.4 @933 repwgt91 10.4 @943 repwgt92 10.4 @953 repwgt93 10.4 @963 repwgt94 10.4 @973 repwgt95 10.4 @983 repwgt96 10.4 @993 repwgt97 10.4 @1003 repwgt98 10.4 @1013 repwgt99 10.4 @1023 repwgt100 10.4 @1033 repwgt101 10.4 @1043 repwgt102 10.4 @1053 repwgt103 10.4 @1063 repwgt104 10.4 @1073 repwgt105 10.4 @1083 repwgt106 10.4 @1093 repwgt107 10.4 @1103 repwgt108 10.4 ; **------------------------------------------------; ** The PROC FORMAT statement will store the formats ; ** in a sas data set called fsipp1996lrw96pnl ; ** To use the stored formats in a subsequent program, ; ** use code like the following; ** proc format cntlin=library.fspp1996lrw96pnl; ** PROC freq; ** tables pesex ; ** format pesex P135L.; ** For more information, consult PROC FORMAT in the SAS Procedures Guide ; **-----------------------------------------------; PROC FORMAT cntlout=library.fspp1996lrw96pnl; ; VALUE spanel (default=32) 1996 = "Panel Year" ; VALUE pnllength (default=32) 12 = "for 1996 panel" ; proc print data=library.sipp1996lrw96pnl (obs=6); FORMAT spanel spanel. pnllength pnllength. ; proc contents data=library.sipp1996lrw96pnl; run; ** Copyright 2014 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. ;