*options obs=6; libname library './'; /* * C:\tmp\cpmarr.sas: NCHS SETS output for SAS * Export from Set D:\NCHS\Marrdivo.set * Tue May 01 11:48:20 2001 */ /* * On output, fields will undergo the following translation: * Original name Translated name * ------------- -------------- * DATAYEAR DATAYEAR * REGNOCC REGNOCC * DIVNOCC DIVNOCC * STATEOCC STATEOCC * MARMON MARMON * MARDAY MARDAY * WEEKDAY WEEKDAY * WEIGHT WEIGHT * GROOMRES GROOMRES * GSTRESR3 GSTRESR3 * GSTRESR4 GSTRESR4 * GSTRES GSTRES * GRACER3 GRACER3 * GRACEDET GRACEDET * GNUMR4 GNUMR4 * GNUMMAR GNUMMAR * GPMSR3 GPMSR3 * GPMSR5 GPMSR5 * GPMSDET GPMSDET * GMONBIR GMONBIR * GYRBIR GYRBIR * GROOMAGE GROOMAGE * GAGEDET GAGEDET * GAGER9 GAGER9 * GAGER7 GAGER7 * GAGER18 GAGER18 * GAGER47 GAGER47 * GAGER24 GAGER24 * BRIDERES BRIDERES * BSTRESR3 BSTRESR3 * BSTRESR4 BSTRESR4 * BSTRES BSTRES * BRACER3 BRACER3 * BRACEDET BRACEDET * BNUMR4 BNUMR4 * BNUMMAR BNUMMAR * BPMSR3 BPMSR3 * BPMSR5 BPMSR5 * BPMSDET BPMSDET * BMONBIR BMONBIR * BYRBIR BYRBIR * BRIDEAGE BRIDEAGE * BAGEDET BAGEDET * BAGER9 BAGER9 * BAGER7 BAGER7 * BAGER18 BAGER18 * BAGER47 BAGER47 * BAGER24 BAGER24 * AGEDFR2 AGEDFR2 * AGEDFDT AGEDFDT */ *OPTIONS COMPRESS='YES'; PROC FORMAT cntlout=library.fmarr; /* Source file: cpmarr.dat */ ; VALUE datayear (default=40) 1989='1989' 1990='1990' 1991='1991' 1992='1992' 1993='1993' 1994='1994' 1995='1995' ; VALUE regnocc (default=40) 0='Possessions' 1='Northeast' 2='Midwest' 3='South' 4='West' ; VALUE divnocc (default=40) 0='Possessions' 1='New England' 2='Middle Atlantic' 3='East North Central' 4='West North Central' 5='South Atlantic' 6='East South Central' 7='West South Central' 8='Mountain' 9='Pacific' ; VALUE stateocc (default=40) 01='Alabama' 02='Alaska' 05='California' 06='Colorado' 07='Connecticut' 08='Delaware' 09='District of Columbia' 10='Florida' 11='Georgia' 12='Hawaii' 13='Idaho' 14='Illinois' 15='Indiana' 16='Iowa' 17='Kansas' 18='Kentucky' 19='Louisiana' 20='Maine' 21='Maryland' 22='Massachusetts' 23='Michigan' 24='Minnesota' 25='Mississippi' 26='Missouri' 27='Montana' 28='Nebraska' 30='New Hampshire' 31='New Jersey' 32='New York State' 33='New York City' 34='North Carolina' 36='Ohio' 38='Oregon' 39='Pennsylvania' 40='Rhode Island' 41='South Carolina' 42='South Dakota' 43='Tennessee' 45='Utah' 46='Vermont' 47='Virginia' 49='West Virginia' 50='Wisconsin' 51='Wyoming' 52='Puerto Rico' 53='Virgin Islands' ; VALUE marmon (default=40) 01='January' 02='February' 03='March' 04='April' 05='May' 06='June' 07='July' 08='August' 09='September' 10='October' 11='November' 12='December' 99='Not stated month' ; VALUE weekday (default=40) 1='Sunday' 2='Monday' 3='Tuesday' 4='Wednesday' 5='Thursday' 6='Friday' 7='Saturday' ; VALUE stresr3l (default=40) 1='Resident of State of marriage' 2 ='Nonresident of State of marriage (in...' /*cl. non-US)*/ 3='Not stated place of residence' ; VALUE stresr4l (default=40) 1='Resident of State of marriage' 2 ='Resident of State adjoining State of...' /* marriage*/ 3 ='Resident of State not adjoining Stat...' /*e of marriage (incl. non-US)*/ 4='Not stated place of residence' ; VALUE stres (default=40) 01='Alabama' 02='Alaska' 03='Arizona' 04='Arkansas' 05='California' 06='Colorado' 07='Connecticut' 08='Delaware' 09='District of Columbia' 10='Florida' 11='Georgia' 12='Hawaii' 13='Idaho' 14='Illinois' 15='Indiana' 16='Iowa' 17='Kansas' 18='Kentucky' 19='Louisiana' 20='Maine' 21='Maryland' 22='Massachusetts' 23='Michigan' 24='Minnesota' 25='Mississippi' 26='Missouri' 27='Montana' 28='Nebraska' 29='Nevada' 30='New Hampshire' 31='New Jersey' 32='New Mexico' 33='New York' 34='North Carolina' 35='North Dakota' 36='Ohio' 37='Oklahoma' 38='Oregon' 39='Pennsylvania' 40='Rhode Island' 41='South Carolina' 42='South Dakota' 43='Tennessee' 44='Texas' 45='Utah' 46='Vermont' 47='Virginia' 48='Washington' 49='West Virginia' 50='Wisconsin' 51='Wyoming' 52='Puerto Rico' 53='Virgin Islands' 54='Guam' 55='Canada' 56='Cuba' 57='Mexico' 59='Remainder of the world' 99='Not stated State' ; VALUE racer3l (default=40) 1='White' 2='All other races' 3='Not stated race' ; VALUE racedet (default=40) 1='White' 2='Black' 3='Other races' 8='Not on certificate' 9='Not stated race' ; VALUE numr4l (default=40) 1='First marriage' 2='Second marriage' 3='Three or more marriages' 4 ='No. of this marriage unknown, not st...' /*ated, or not on certificate*/ ; VALUE $nummar (default=40) '1'='First marriage' '2'='Second marriage' '3'='Third marriage' '4'='Fourth marriage' '5'='Fifth marriage' '6'='Sixth marriage' '7'='Seventh marriage' '8'='Eighth marriage' '9'='Married nine or more times' '0'='Number unknown but has been previous...' /*ly married*/ '-'='Number of this marriage not stated' '&'='Not on certificate' ; VALUE pmsr3l (default=40) 1='Previously single' 2='Previously married' 3 ='Previous marital status not on certi...' /*ficate or not stated*/ ; VALUE pmsr5l (default=40) 1='Previously single' 2='Previously widowed' 3='Previous divorce or annulment' 4 ='Previously married, unknown if widow...' /*ed, divorced, or annulled*/ 5 ='Previous marital status not on certi...' /*ficate or not stated*/ ; VALUE $pmsdet (default=40) '1'='Previously single' '2'='Previously widowed' '3'='Previously divorced' '4'='Previous annulment' '9'='Previous marital status not stated' '0'='Previously married, unknown if widow...' /*ed, divorced, or annulled*/ '&'='Previous marital status not on certi...' /*ficate*/ ; VALUE $yrbir (default=40) '96'='1896' '97'='1897' '98'='1898' '99'='1899' '00'='1900' '01'='1901' '02'='1902' '03'='1903' '04'='1904' '05'='1905' '06'='1906' '07'='1907' '08'='1908' '09'='1909' '10'='1910' '11'='1911' '12'='1912' '13'='1913' '14'='1914' '15'='1915' '16'='1916' '17'='1917' '18'='1918' '19'='1919' '20'='1920' '21'='1921' '22'='1922' '23'='1923' '24'='1924' '25'='1925' '26'='1926' '27'='1927' '28'='1928' '29'='1929' '30'='1930' '31'='1931' '32'='1932' '33'='1933' '34'='1934' '35'='1935' '36'='1936' '37'='1937' '38'='1938' '39'='1939' '40'='1940' '41'='1941' '42'='1942' '43'='1943' '44'='1944' '45'='1945' '46'='1946' '47'='1947' '48'='1948' '49'='1949' '50'='1950' '51'='1951' '52'='1952' '53'='1953' '54'='1954' '55'='1955' '56'='1956' '57'='1957' '58'='1958' '59'='1959' '60'='1960' '61'='1961' '62'='1962' '63'='1963' '64'='1964' '65'='1965' '66'='1966' '67'='1967' '68'='1968' '69'='1969' '70'='1970' '71'='1971' '72'='1972' '73'='1973' '74'='1974' '75'='1975' '76'='1976' '77'='1977' '78'='1978' '--'='Not stated year' */ ; VALUE ager9l (default=40) 1='12-17' 2='18-19' 3='20-24' 4='25-29' 5='30-34' 6='35-44' 7='45-54' 8='55-64' 9='65 years and over' ; VALUE ager7l (default=40) 1='12-13' 2='14-17' 3='18-19' 4='20-24' 5='25-44' 6='45-64' 7='65 years and over' ; VALUE ager18l (default=40) 17='12-17 years' 18='18 years' 19='19 years' 20='20 years' 21='21 years' 22='22 years' 23='23 years' 24='24 years' 25='25 years' 26='26 years' 27='27 years' 28='28 years' 29='29 years' 30='30-34 years' 31='35-44 years' 32='45-54 years' 33='55-64 years' 34='65 years and over' ; VALUE ager47l (default=40) 13='12-13 years' 14='14 years' 15='15 years' 16='16 years' 17='17 years' 18='18 years' 19='19 years' 20='20 years' 21='21 years' 22='22 years' 23='23 years' 24='24 years' 25='25 years' 26='26 years' 27='27 years' 28='28 years' 29='29 years' 30='30 years' 31='31 years' 32='32 years' 33='33 years' 34='34 years' 35='35 years' 36='36 years' 37='37 years' 38='38 years' 39='39 years' 40='40 years' 41='41 years' 42='42 years' 43='43 years' 44='44 years' 45='45 years' 46='46 years' 47='47 years' 48='48 years' 49='49 years' 50='50 years' 51='51 years' 52='52 years' 53='53 years' 54='54 years' 55='55-59 years' 56='60-64 years' 57='65-65 years' 58='70-70 years' 59='75 years and over' ; VALUE ager24l (default=40) 1 ='S(12-17 years), D(12-19 years), W(12...' /*-24 years)*/ 2 ='S(18-19 years), D(20-24 years), W(25...' /*-34 years)*/ 3 ='S(20-24 years), D(25-29 years), W(35...' /*-44 years)*/ 4 ='S(25-29 years), D(30-34 years), W(45...' /*-54 years)*/ 5 ='S(30-34 years), D(35-44 years), W(55...' /*-64 years)*/ 6 ='S(35-44 years), D(45-54 years), W(65...' /* years and over)*/ 7='S(45-54 years), D(55-64 years)' 8='S(55-64 years), D(65 years and over)' 9='S(65 years and over)' 0='All ages' ; VALUE agedfr2l (default=40) 1='Groom older than or same age as bride' 2='Groom younger than bride' ; *FILENAME raw pipe "unzip -p /homes/data/marrdivo/cpmarr.zip"; FILENAME raw pipe "zcat /homes/data/marrdivo/cpmarr.dat.Z"; DATA library.marr; LENGTH DEFAULT=3; *INFILE raw LRECL=68 PAD END=EOF; INFILE raw LRECL=68 ; * To read in uncompressed file, uncomment INFILE & comment filename & infile lines; * On a PC, you may need to change the direction of the slashes as in C:\; *INFILE '/home/data/marrdivo/cpmarr.dat' LRECL=68 PAD END=EOF; INPUT /* Source file: cpmarr.dat */ @1 DATAYEAR 4. @5 REGNOCC 1. @6 DIVNOCC 1. @7 STATEOCC 2. @9 MARMON 2. @11 MARDAY 2. @13 WEEKDAY 1. @14 WEIGHT 3. @17 GROOMRES $CHAR4. @17 GSTRESR3 1. @18 GSTRESR4 1. @19 GSTRES 2. @21 GRACER3 1. @22 GRACEDET 1. @23 GNUMR4 1. @24 GNUMMAR $CHAR1. @25 GPMSR3 1. @26 GPMSR5 1. @27 GPMSDET $CHAR1. @28 GMONBIR 2. @30 GYRBIR $CHAR2. @32 GROOMAGE $CHAR9. @32 GAGEDET 2. @34 GAGER9 1. @35 GAGER7 1. @36 GAGER18 2. @38 GAGER47 2. @40 GAGER24 1. @41 BRIDERES $CHAR4. @41 BSTRESR3 1. @42 BSTRESR4 1. @43 BSTRES 2. @45 BRACER3 1. @46 BRACEDET 1. @47 BNUMR4 1. @48 BNUMMAR $CHAR1. @49 BPMSR3 1. @50 BPMSR5 1. @51 BPMSDET $CHAR1. @52 BMONBIR 2. @54 BYRBIR $CHAR2. @56 BRIDEAGE $CHAR9. @56 BAGEDET 2. @58 BAGER9 1. @59 BAGER7 1. @60 BAGER18 2. @62 BAGER47 2. @64 BAGER24 1. @65 AGEDFR2 1. @66 AGEDFDT 2. ; LABEL DATAYEAR='Year of Marriage' REGNOCC='Region of Marriage' DIVNOCC='Division of Marriage' STATEOCC='NCHS State of Residence' MARMON='Month of Marriage' MARDAY='Day of Marriage' WEEKDAY='Day of Week of Marriage' WEIGHT='Weight' GROOMRES='Place of Residence of Groom' GSTRESR3="Groom's Resident Status Recode 3" GSTRESR4="Groom's Resident Status Recode 4" GSTRES='State of Residence of Groom' GRACER3='Race of Groom Recode 3' GRACEDET='Detail Race of Groom' GNUMR4='Number of this marriage of Groom Re...' /*code 4*/ GNUMMAR='Detail Number of This Marriage of Groom' GPMSR3='Previous Marital Status Recode 3' GPMSR5='Previous Marital Status Recode 5' GPMSDET='Detail Previous Marital Status' GMONBIR='Month of Birth of Groom' GYRBIR='Year of Birth of Groom' GROOMAGE='Age at Time of Marriage of Groom' GAGEDET="Groom's Detail Age at time of Marriage" GAGER9="Groom's Age at Marriage Recode 9" GAGER7="Groom's Age at Marriage Recode 7" GAGER18="Groom's Age at Marriage Recode 18" GAGER47="Groom's Age at Marriage Recode 47" GAGER24='Age Based on Previous Marital Status' BRIDERES="Bride's Place of Residence" BSTRESR3="Bride's Resident Status Recode 3" BSTRESR4="Bride's Besident Status Recode 4" BSTRES='State of Residence of Bride' BRACER3='Race of Bride Recode 3' BRACEDET='Detail Race of Bride' BNUMR4='Number of This Marriage of Bride Rec...' /*ode 4*/ BNUMMAR='Detail Number of This Marriage of Bride' BPMSR3="Bride's Previous Marital Status Recode 3" BPMSR5="Bride's Previous Marital Status Recode 5" BPMSDET="Bride's Detail Previous Marital Status" BMONBIR='Month of Birth of Bride' BYRBIR='Year of Birth of Bride' BRIDEAGE='Age at Time of Marriage of Bride' BAGEDET="Bride's Detail Age at Marriage" BAGER9="Bride's Age at Marriage Recode 9" BAGER7="Bride's Age at Marriage Recode 7" BAGER18="Bride's Age at Marriage Recode 18" BAGER47="Bride's Age at Marriage Recode 47" BAGER24='Age Based Previous Marital Status' AGEDFR2='Age Difference Recode 2' AGEDFDT='Detail Age Difference' ; FORMAT DATAYEAR datayear. REGNOCC regnocc. DIVNOCC divnocc. STATEOCC stateocc. MARMON marmon. WEEKDAY weekday. GSTRESR3 stresr3l. GSTRESR4 stresr4l. GSTRES stres. GRACER3 racer3l. GRACEDET racedet. GNUMR4 numr4l. GNUMMAR $nummar. GPMSR3 pmsr3l. GPMSR5 pmsr5l. GPMSDET $pmsdet. GMONBIR marmon. GYRBIR $yrbir. GAGER9 ager9l. GAGER7 ager7l. GAGER18 ager18l. GAGER47 ager47l. GAGER24 ager24l. BSTRESR3 stresr3l. BSTRESR4 stresr4l. BSTRES stres. BRACER3 racer3l. BRACEDET racedet. BNUMR4 numr4l. BNUMMAR $nummar. BPMSR3 pmsr3l. BPMSR5 pmsr5l. BPMSDET $pmsdet. BMONBIR marmon. BYRBIR $yrbir. BAGER9 ager9l. BAGER7 ager7l. BAGER18 ager18l. BAGER47 ager47l. BAGER24 ager24l. AGEDFR2 agedfr2l. ; proc print data=library.marr (obs=5); proc freq data=library.marr; tables datayear; PROC CONTENTS DATA=library.marr;