Announcement

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

  • infix with files that do not have suffixes

    I am trying to read in 1000s of raw data files with the infix command. The files have a numeric name with no suffix (e.g., 2001201). When I use the following command:

    infix year 1-4 ..... using "2001201"

    Stata assumes the file has the *.raw suffix, but it actually has no suffix. I have not discovered how to tell Stata there is no suffix to the file name. Any suggestions?

    Roger

  • #2
    I believe you can solve this by adding a period to the end of the filename (https://ciser.cornell.edu/reading-as...-into-stata/):

    Code:
    infix year 1-4 ..... using "2001201."

    Comment


    • #3
      That works. Thx!

      Comment

      Working...
      X