Announcement

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

  • Problem with shp2dta..

    Hi guys,

    I need your help

    use "C:\Program Files\Stata18\mekden.dta"

    shp2dta using Can.shp, database(datacan) coordinates(coordcan) genid(id) gencentroids(c) replace


    I am using the above code but it gives this error. I tried hard but I couldn't figure it out. Could you help me?

    type: 5
    file coordcan.dta could not be opened

  • #2
    This error messge is claiming that Stata can't write in the current directory, or that coordcan.dta already exists in the current directory is write protected or that file is open already by a different process. Can you check that? Stata will show you the current directory with

    Code:
    pwd
    ls -l
    If the file already exists, remove it or try to save the coordinates file with a different name.

    Comment

    Working...
    X