Announcement

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

  • error opening .dta file created in sas

    hello,
    I converted a sas data file into a stata .dta file ( or atleast i thought i did) and it will not open in stata (v15.1)

    in sas i used the following command: "proc export data= xyz outfile="c:\data\xyz.dta";

    when i try to open it in stata, i get the following error:

    file C:\hosp9697.dta not Stata format
    r(610);

    any thoughts on how to remedy this?

    thanks
    vishal

  • #2
    The easiest start would probably be dtaverify.

    Comment


    • #3
      If your SAS installation includes the necessary license for the SAS ACCESS Interface to PC Files, you will I think need to add
      Code:
      DMBS=STATA
      to your PROC EXPORT statement. Not every SAS installation includes the license for SAS ACCESS Interface to PC Files, that's up to whomever licensed your copy of SAS.

      Comment


      • #4
        thanks!

        Comment

        Working...
        X