Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • Do File not locating dictionary file error code r613

    I'm using stata 11.2 and attempting to load a custom data set from SDA. When executing the 'do' command for my file do file the following error pops up:

    infile using

    /Users/Hal/Downloads/subfiles-3/sub-stata3.dct

    {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf21 0
    file does not contain dictionary
    r(613);


    Any help or insight would be greatly appreciated, thank you.

  • #2
    On this information, the error message appears correct. You can try typing the file and show us how it starts:

    Code:
    type /Users/Hal/Downloads/subfiles-3/sub-stata3.dct

    Comment


    • #3
      Thanks for the quick reply Nick. Here's the beginning

      type /Users/Hal/Downloads/subfiles-3/sub-stata3.dct
      {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf21 0
      {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
      {\colortbl;\red255\green255\blue255;}
      \margl1440\margr1440\vieww10800\viewh8400\viewkind 0
      \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5 040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatur al

      \f0\fs24 \cf0 \
      infix dictionary using /Users/Hal/Downloads/subfiles-3/sub-stata3.do\
      ************************************************** ***************\
      * Replace 'Y' with the name of the data file.\
      * The default suffix is '.raw'.\
      *\
      * Put this dictionary into a separate file (with the suffix .dct).\
      * (The first line of the dictionary file must contain the\
      * 'dictionary' command.)\
      *\
      * Then edit the name of that dictionary file into the 'do-file'\
      * portion of the STATA definitions.\
      ************************************************** ****************\
      * Records per case:\
      _lines(1)\
      \
      _line(1)\
      \
      _column(1) long CASEID %5f "CASE IDENTIFICATION NUMBER"\
      _column(6) int YEAR %4f "GSS YEAR FOR THIS RESPONDENT"\
      _column(10) int ID %4f "RESPONDNT ID NUMBER"\
      _column(14) int AGE :AGE %2f "AGE OF RESPONDENT"\
      _column(16) int SEX :SEX %1f "RESPONDENTS SEX"\
      _column(17) int RACE :RACE %1f "RACE OF RESPONDENT"\
      _column(18) int RACECEN1 :RACECEN1 %2f "WHAT IS RS RACE 1ST MENTION"\
      --more--

      Comment


      • #4
        That's not a dictionary yet. As the embedded text instructs, you are expected to edit it first.

        Comment


        • #5
          I see I inserted the name of the do file rather than the data file. I corrected that, but I'm still lost I'm getting the same error code. I double checked creating a library instructed and I don't see what I'm missing. I'm quite confused

          . type /Users/Hal/Downloads/subfiles-3/sub-stata3.dct
          {\rtf1\ansi\ansicpg1252\cocoartf1265\cocoasubrtf21 0
          {\fonttbl\f0\fswiss\fcharset0 Helvetica;}
          {\colortbl;\red255\green255\blue255;}
          \margl1440\margr1440\vieww10800\viewh8400\viewkind 0
          \pard\tx720\tx1440\tx2160\tx2880\tx3600\tx4320\tx5 040\tx5760\tx6480\tx7200\tx7920\tx8640\pardirnatur al

          \f0\fs24 \cf0 \
          dictionary using /Users/Hal/Downloads/subfiles-3/sub-data.txt \{\
          Records per case:\
          _lines(1)\
          \
          _line(1)\
          \
          _column(1) long CASEID %5f "CASE IDENTIFICATION NUMBER"\
          _column(6) int YEAR %4f "GSS YEAR FOR THIS RESPONDENT"\
          _column(10) int ID %4f "RESPONDNT ID NUMBER"\
          _column(14) int AGE :AGE %2f "AGE OF RESPONDENT"\
          _column(16) int SEX :SEX %1f "RESPONDENTS SEX"\
          _column(17) int RACE :RACE %1f "RACE OF RESPONDENT"\
          _column(18) int RACECEN1 :RACECEN1 %2f "WHAT IS RS RACE 1ST MENTION"\
          _column(20) int RACECEN2 :RACECEN2 %2f "WHAT IS RS RACE 2ND MENTION"\
          _column(22) int RACECEN3 :RACECEN3 %2f "WHAT IS RS RACE 3RD MENTION"\
          _column(24) int HISPANIC :HISPANIC %2f "HISPANIC SPECIFIED"\
          _column(26) int RACEHISP :RACEHISP %1f "Race with Hispanic (2000 and later)"\
          _column(27) int ETHNIC :ETHNIC %2f "COUNTRY OF FAMILY ORIGIN"\
          _column(29) int ETH1 :ETH1 %2f "1ST MENTIONED COUNTRY OF ORIGIN"\
          _column(31) int ETH2 :ETH2 %2f "2ND MENTIONED COUNTRY OF ORIGIN"\
          _column(33) int ETH3 :ETH3 %2f "3RD MENTIONED COUNTRY OF ORIGIN"\
          _column(35) int ETHNUM :ETHNUM %1f "TYPE OF RESPONSE ABOUT ETHNICITY -- R"\
          _column(36) int SPETHNIC :SPETHNIC %2f "COUNTRY OF SPOUSES FAMILY ORIGIN"\
          _column(38) int SPETH1 :SPETH1 %2f "1ST MENTIONED COUNTRY OF SPOUSES ORIGIN"\
          _column(40) int SPETH2 :SPETH2 %2f "2ND MENTIONED COUNTRY OF SPOUSES ORIGIN"\
          _column(42) int SPETH3 :SPETH3 %2f "3RD MENTIONED COUNTRY OF SPOUSES ORIGIN"\
          _column(44) int SPETHNUM :SPETHNUM %1f "TYPE OF RESPONSE ABOUT ETHNICITY -- SP"\
          _column(45) int RACESEE :RACESEE %2f "OBSERVED RACE"\
          _column(47) int RACEDBTF :RACEDBTF %1f "CERTAINTY OF OBSERVED RACE"\
          _column(48) int RACESELF :RACESELF %1f "R's OWN RACIAL ID"\
          _column(49) int DIFRACE1 :DIFRACE1 %1f "WHY OBSERVATION DISAGREES SELF ID"\
          _column(50) int DIFRACE2 :DIFRACE2 %2f "WHY OBSERVATION DISAGREES SELF ID"\

          Comment


          • #6
            Still needs editing. See

            Code:
             
            help infile2
            You need a good text editor or someone who knows how to use one.

            Comment

            Working...
            X