*options obs=6; libname library './'; /* * C:\tmp\cpdivo.sas: NCHS SETS output for SAS * Export from Set D:\NCHS\Marrdivo.set * Tue May 01 11:53:41 2001 */ /* * On output, fields will undergo the following translation: * Original name Translated name * ------------- -------------- * DATAYEAR DATAYEAR * FLDIVMON FLDIVMON * DIVMON DIVMON * WEIGHT WEIGHT * STATEOCC STATEOCC * REGNOCC REGNOCC * STSUBOCC STSUBOCC * DIVNOCC DIVNOCC * UNDER18 UNDER18 * FLNMCI18 FLNMCI18 * NMCH18DT NMCH18DT * NMCH18R8 NMCH18R8 * NMCH18R5 NMCH18R5 * FLCUSTHS FLCUSTHS * FLCUSTWF FLCUSTWF * FLCUSTJT FLCUSTJT * FLCUSTOT FLCUSTOT * CUSTHUSB CUSTHUSB * CUSTWIFE CUSTWIFE * CUSTJNT CUSTJNT * CUSTOTHR CUSTOTHR * CUSTR7 CUSTR7 * CUSTNUMC CUSTNUMC * MARMON MARMON * MARYEAR MARYEAR * DURMARMT DURMARMT * DURMARYR DURMARYR * DURMRR16 DURMRR16 * DURMRR7 DURMRR7 * HSTRES HSTRES * HSTRESR5 HSTRESR5 * HSTRESR3 HSTRESR3 * HRACE HRACE * HMONBIR HMONBIR * HYRBIR HYRBIR * HAGED HAGED * FLHRAGE FLHRAGE * HAGEDET HAGEDET * HAGER16 HAGER16 * HAGER12 HAGER12 * HAGERPT HAGERPT * HAGECOMP HAGECOMP * HAGEM HAGEM * HAGMDET HAGMDET * HAGMR8 HAGMR8 * HNUMMAR HNUMMAR * HNUMR5 HNUMR5 * WSTRES WSTRES * WSTRESR5 WSTRESR5 * WSTRESR3 WSTRESR3 * WRACE WRACE * WMONBIR WMONBIR * WYRBIR WYRBIR * WAGED WAGED * FLWRAGE FLWRAGE * WAGEDET WAGEDET * WAGER16 WAGER16 * WAGER12 WAGER12 * WAGERPT WAGERPT * WAGECMP WAGECMP * WAGEMDET WAGEMDET * WAGMR8 WAGMR8 * WNUMMAR WNUMMAR * WNUMR5 WNUMR5 * FLRES FLRES * FLSTRES FLSTRES * FLDATEB FLDATEB * FLDATEM FLDATEM * FLNMCH18 FLNMCH18 * FLCUST FLCUST * FLNUMMAR FLNUMMAR * FLRACE FLRACE * FLAGE FLAGE */ *OPTIONS COMPRESS='YES'; PROC FORMAT cntlout=library.fdivo; /* Source file: cpdivo.dat */ ; VALUE datayear (default=40) 1989='1989' 1990='1990' 1991='1991' 1992='1992' 1993='1993' 1994='1994' 1995='1995' ; VALUE $fldivmon (default=40) ' '='Month is not imputed' '1'='Month is imputed' ; VALUE divmon (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 stateocc (default=40) 01='Alabama' 02='Alaska' 07='Connecticut' 08='Delaware' 09='District of Columbia' 11='Georgia' 12='Hawaii' 13='Idaho' 14='Illinois' 16='Iowa' 17='Kansas' 18='Kentucky' 21='Maryland' 22='Massachusetts' 23='Michigan' 26='Missouri' 27='Montana' 28='Nebraska' 30='New Hampshire' 33='New York' 36='Ohio' 38='Oregon' 39='Pennsylvania' 40='Rhode Island' 41='South Carolina' 42='South Dakota' 43='Tennessee' 45='Utah' 46='Vermont' 47='Virginia' 50='Wisconsin' 51='Wyoming' 53='Virgin Islands' ; VALUE regnocc (default=40) 0='Possessions' 1='Northeast' 2='Midwest' 3='South' 4='West' ; VALUE stsubocc (default=40) 00='Possessions' 12='New Hampshire' 13='Vermont' 14='Massachusetts' 15='Rhode Island' 16='Connecticut' 21='New York' 23='Pennsylvania' 31='Ohio' 33='Illinois' 34='Michigan' 35='Wisconsin' 42='Iowa' 43='Missouri' 45='South Dakota' 46='Nebraska' 47='Kansas' 51='Delaware' 52='Maryland' 53='District of Columbia' 54='Virginia' 57='South Carolina' 58='Georgia' 61='Kentucky' 62='Tennessee' 63='Alabama' 81='Montana' 82='Idaho' 83='Wyoming' 87='Utah' 92='Oregon' 94='Alaska' 95='Hawaii' ; 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 $flnmci (default=40) ' '='Number of children under 18 is not i...' /*mputed*/ '1'='Number of children under 18 is imputed' ; VALUE nmch18dt (default=40) 00='None' 01='One child' 02='Two children' 03='Three children' 04='Four children' 05='Five children' 06='Six children' 07='Seven children' 08='Eight children' 09='Nine children' 10='Ten children' 11='Eleven children' 12='Twelve children' 13='Thirteen children' 14='Fourteen children' 15='Fifteen children' 16='Sixteen children' 17='Seventeen children' 18='Eighteen children' 19='Nineteen children' 20='Twenty children' 21='Twenty-one children' 22='Twenty-two children' 23='Twenty-three children' 24='Twenty-four children' 25='Twenty-five children' 99='Not stated number of children' ; VALUE nmch188l (default=40) 0='None' 1='One child' 2='Two children' 3='Three children' 4='Four children' 5='Five children' 6='Six or more children' 7='Not stated number of children' ; VALUE nmch185l (default=40) 0='None' 1='One child' 2='Two children' 3='Three or more children' 4='Not stated number of children' ; VALUE $flcust (default=40) ' '='Custody item is not imputed' '1'='Custody item is imputed' ; VALUE cust (default=40) 0='None' 1='1 child' 2='2 children' 3='3 children' 4='4 children' 5='5 children' 6='6 children' 7='7 children' 8='8 or more children' 9='Unknown or not stated' ; VALUE custr7l (default=40) 0='Custody not awarded' 1='Husband awarded custody of all children' 2='Wife awarded custody of all children' 3='Joint custody awarded for all children' 4 ='Other person awarded custody of all ...' /*children*/ 5='Combination of husband/wife/joint/other' 9='Not stated' ; VALUE custnumc (default=40) 00='None' 01='1 child' 02='2 children' 03='3 children' 04='4 children' 05='5 children' 06='6 children' 07='7 children' 08='8 children' 09='9 children' 10='0 children' 11='11 children' 12='12 children' 13='13 children' 14='14 children' 15='15 children' 16='16 children' 17='17 children' 18='18 children' 19='19 children' 20='20 children' 21='21 children' 22='22 children' 23='23 children' 24='24 children' 25='25 children' 26='26 children' 27='27 children' 28='28 children' 29='29 children' 30='30 children' 31='31 children' 32='32 children' 99='Not stated' ; VALUE maryear (default=40) 9999='Not stated' ; VALUE durmarmt (default=40) 000='Under one month' 998='More than 997 months' 999='Not stated duration' ; VALUE durmaryr (default=40) 00='Under one year' 99='Not stated duration' ; VALUE durmr16l (default=40) 00='Under 1 year' 01='1 year' 02='2 years' 03='3 years' 04='4 years' 05='5 years' 06='6 years' 07='7 years' 08='8 years' 09='9 years' 10='10-14 years' 11='15-19 years' 12='20-24 years' 13='25-29 years' 14='30 or more years' 15='Not stated duration' ; VALUE durmr7l (default=40) 0='Under 1 year' 1='1-2 years' 2='3-4 years' 3='5-9 years' 4='10-14 years' 5='15 or more years' 6='Not stated duration' ; 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 stres5l (default=40) 1='Resident of State of divorce' 2 ='Resident of State adjoining State of...' /* divorce*/ 3 ='Resident of State that does not adjo...' /*in the State of divorce*/ 4='Foreign resident' 5='Not stated place of resident' ; VALUE stres3l (default=40) 1='Resident of State of divorce' 2 ='Nonresident of State of divorce (inc...' /*ludes foreign residents)*/ 3='Not stated place of residence' ; VALUE race (default=40) 1='White' 2='Black' 3='Other races' 4='Not stated race' ; VALUE $yrbir (default=40) ' '='Not stated year' ; VALUE $flrage (default=40) ' '='Reported age is not used' '1'='Reported age is used' ; VALUE agedet (default=40) 99='Not stated age' ; VALUE ager16l (default=40) 01='Under 20 years' 02='20-24 years' 03='25-29 years' 04='30-34 years' 05='35-39 years' 06='40-44 years' 07='45-49 years' 08='50-54 years' 09='55-59 years' 10='60-64 years' 11='65-69 years' 12='70-74 years' 13='75-79 years' 14='80-84 years' 15='85 years and over' 16='Not stated age' ; VALUE ager12l (default=40) 01='Under 20 years' 02='20-24 years' 03='25-29 years' 04='30-34 years' 05='35-39 years' 06='40-44 years' 07='45-49 years' 08='50-54 years' 09='55-59 years' 10='60-64 years' 11='65 years and over' 12='Not stated age' ; VALUE agerpt (default=40) 99='Not stated' ; VALUE agecomp (default=40) 99='Not stated age' ; VALUE agmr8l (default=40) 1='Under 20 years' 2='20-24' 3='25-29' 4='30-34' 5='35-39' 6='40-44' 7='45 years and over' 8='Not stated age' ; 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' 0 ='Number unknown but has been previous...' /*ly married*/ 9='Unknown or not stated number' ; VALUE numr5l (default=40) 1='First marriage' 2='Second marriage' 3='Third or higher marriage' 4 ='Number unknown but has been previous...' /*ly married*/ 5='Not stated number' ; VALUE agecmp (default=40) 99='Not stated age' ; VALUE agemdet (default=40) 99='Not stated age' ; VALUE flag (default=40) 0 ='The iten is not reported or marginal...' /*ly reported*/ 1='The item is reported' ; filename raw pipe "unzip -p /homes/data/marrdivo/cpdivo.zip"; DATA library.divo; LENGTH DEFAULT=3; INFILE raw LRECL=108 PAD END=EOF; * 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/cpdivo.dat' LRECL=68 PAD END=EOF; INPUT /* Source file: cpdivo.dat */ @1 DATAYEAR 4. @5 FLDIVMON $CHAR1. @6 DIVMON 2. @8 WEIGHT 2. @10 STATEOCC 2. @12 REGNOCC 1. @13 STSUBOCC 2. @13 DIVNOCC 1. @15 UNDER18 $CHAR5. @15 FLNMCI18 $CHAR1. @16 NMCH18DT 2. @18 NMCH18R8 1. @19 NMCH18R5 1. @20 FLCUSTHS $CHAR1. @21 FLCUSTWF $CHAR1. @22 FLCUSTJT $CHAR1. @23 FLCUSTOT $CHAR1. @24 CUSTHUSB 1. @25 CUSTWIFE 1. @26 CUSTJNT 1. @27 CUSTOTHR 1. @28 CUSTR7 1. @29 CUSTNUMC 2. @31 MARMON 2. @33 MARYEAR 4. @37 DURMARMT 3. @40 DURMARYR 2. @42 DURMRR16 2. @44 DURMRR7 1. @45 HSTRES 2. @47 HSTRESR5 1. @48 HSTRESR3 1. @49 HRACE 1. @50 HMONBIR 2. @52 HYRBIR $CHAR4. @56 HAGED $CHAR11. @56 FLHRAGE $CHAR1. @57 HAGEDET 2. @59 HAGER16 2. @61 HAGER12 2. @63 HAGERPT 2. @65 HAGECOMP 2. @67 HAGEM $CHAR3. @67 HAGMDET 2. @69 HAGMR8 1. @70 HNUMMAR 1. @71 HNUMR5 1. @72 WSTRES 2. @74 WSTRESR5 1. @75 WSTRESR3 1. @76 WRACE 1. @77 WMONBIR 2. @79 WYRBIR $CHAR4. @83 WAGED $CHAR11. @83 FLWRAGE $CHAR1. @84 WAGEDET 2. @86 WAGER16 2. @88 WAGER12 2. @90 WAGERPT 2. @92 WAGECMP 2. @94 WAGEMDET 2. @96 WAGMR8 1. @97 WNUMMAR 1. @98 WNUMR5 1. @99 FLRES $CHAR8. @99 FLSTRES 1. @100 FLDATEB 1. @101 FLDATEM 1. @102 FLNMCH18 1. @103 FLCUST 1. @104 FLNUMMAR 1. @105 FLRACE 1. @106 FLAGE 1. ; LABEL DATAYEAR='Year' FLDIVMON='Month of Divorce Imputation Flag' DIVMON='Month of Divorce' WEIGHT='Weight' STATEOCC='State of Divorce' REGNOCC='Region of Occurrence' STSUBOCC='State Subcode of Occurrence' DIVNOCC='Division of Occurrence' UNDER18='Number of Children Under 18' FLNMCI18='Number of Children Under 18 Imputati...' /*on Flag*/ NMCH18DT='Detail Number' NMCH18R8='Number of Children Under 18 Recode 8' NMCH18R5='Number of Children Under 18 Recode 5' FLCUSTHS='Husband Custody Flag' FLCUSTWF='Wife Custody Flag' FLCUSTJT='Joint Custody Flag' FLCUSTOT='Other Custody Flag' CUSTHUSB='Number of Children Awarded to Husband' CUSTWIFE='Number of Children Awarded to Wife' CUSTJNT='Number of Children Awarded Jointly' CUSTOTHR='Number of Children Awarded to Other' CUSTR7='Custody Recode' CUSTNUMC='Number of Custodies of Children Reported' MARMON='Month of Marriage' MARYEAR='Year of Marriage' DURMARMT='Duration of Marriage in Months' DURMARYR='Duration of Marriage Detail Years' DURMRR16='Duration Recode 16' DURMRR7='Duration Recode 7' HSTRES="Husband's State of Residence" HSTRESR5='Resident Status of Husband Recode 5' HSTRESR3='Resident Status of Husband Recode 3' HRACE='Race of Husband' HMONBIR='Month of Birth of Husband' HYRBIR='Year of Birth of Husband' HAGED='Age of Husband at Time of Decree' FLHRAGE='Reported Age of Husband Used Flag' HAGEDET='Husband Combined Age at Decree' HAGER16='Combined Age at Decree Recode' HAGER12='Combined Age at Decree Recode' HAGERPT='Reported Age of Husband at Decree' HAGECOMP='Husband Computed Age at Decree' HAGEM='Age of Husband at Time of Marriage' HAGMDET="Husband's Detail Age" HAGMR8="Husband's Age at Marriage Recode" HNUMMAR='Detail Number of This Marriage of Hu...' /*sband*/ HNUMR5='Number of This Marriage Recode' WSTRES="Wife's State of Residence" WSTRESR5='Resident Status of Wife Recode 5' WSTRESR3='Resident Status of Wife Recode 3' WRACE='Race of Wife' WMONBIR='Month of Birth of Wife' WYRBIR='Year of Birth of Wife' WAGED='Age of Wife at Time of Decree' FLWRAGE='Reported Age of Wife Used Flag' WAGEDET='Wife Combined Age at Decree' WAGER16='Combined Age at Decree Recode 16' WAGER12='Combined Age at Decree Recode 12' WAGERPT='Reported Age of Wife at Decree' WAGECMP='Wife Computed Age at Decree' WAGEMDET='Detail Age of Wife at Time of Marriage' WAGMR8='Age at Marriage Recode' WNUMMAR='Detail Number of This Marriage of Wife' WNUMR5='Number of This Marriage of Wife Recode' FLRES='Reporting Flags for Place of Occurrence' FLSTRES='State of Residence Flag' FLDATEB='Date of Birth Flag' FLDATEM='Date of This Marriage Flag' FLNMCH18='Number Under 18 in This Household Flag' FLCUST='Number Under 18 Whose Custody Awarde...' /*d Flag*/ FLNUMMAR='Number of This Marriage Flag' FLRACE='Race Flag' FLAGE='Age Flag' ; FORMAT DATAYEAR datayear. FLDIVMON $fldivmon. DIVMON divmon. STATEOCC stateocc. REGNOCC regnocc. STSUBOCC stsubocc. DIVNOCC divnocc. FLNMCI18 $flnmci. NMCH18DT nmch18dt. NMCH18R8 nmch188l. NMCH18R5 nmch185l. FLCUSTHS $flcust. FLCUSTWF $flcust. FLCUSTJT $flcust. FLCUSTOT $flcust. CUSTHUSB cust. CUSTWIFE cust. CUSTJNT cust. CUSTOTHR cust. CUSTR7 custr7l. CUSTNUMC custnumc. MARMON divmon. MARYEAR maryear. DURMARMT durmarmt. DURMARYR durmaryr. DURMRR16 durmr16l. DURMRR7 durmr7l. HSTRES stres. HSTRESR5 stres5l. HSTRESR3 stres3l. HRACE race. HMONBIR divmon. HYRBIR $yrbir. FLHRAGE $flrage. HAGEDET agedet. HAGER16 ager16l. HAGER12 ager12l. HAGERPT agerpt. HAGECOMP agecomp. HAGMDET agemdet. HAGMR8 agmr8l. HNUMMAR nummar. HNUMR5 numr5l. WSTRES stres. WSTRESR5 stres5l. WSTRESR3 stres3l. WRACE race. WMONBIR divmon. WYRBIR $yrbir. FLWRAGE $flrage. WAGEDET agedet. WAGER16 ager16l. WAGER12 ager12l. WAGERPT agerpt. WAGECMP agecmp. WAGEMDET agemdet. WAGMR8 agmr8l. WNUMMAR nummar. WNUMR5 numr5l. FLSTRES flag. FLDATEB flag. FLDATEM flag. FLNMCH18 flag. FLCUST flag. FLNUMMAR flag. FLRACE flag. FLAGE flag. ; proc print data=library.divo (obs=6); PROC CONTENTS DATA=library.divo;