DATA Step, Macro, Functions and more

Import STATA files to SAS

Reply
Contributor
Posts: 26

Import STATA files to SAS

Hi,

 

I tried to import stata file into window-SAS 9.3. But it was not successful.

The following is error log.

 

NOTE: Copyright (c) 2002-2010 by SAS Institute Inc., Cary, NC, USA.

NOTE: SAS (r) Proprietary Software 9.3 (TS1M2)

Licensed to UNIVERSITY OF AKRON - SFA T&R, Site 70109976.

NOTE: This session is executing on the X64_7HOME platform.

 

 

NOTE: Enhanced analytical products:

SAS/STAT 12.1, SAS/ETS 12.1, SAS/OR 12.1, SAS/IML 12.1, SAS/QC 12.1

NOTE: SAS initialization used:

real time 1.23 seconds

cpu time 1.18 seconds

For Stata, Release flags of 103 to 115 are supported. You had -> 60

Requested Input File Is Invalid

ERROR: Import unsuccessful. See SAS Log for details.

 

I will be appreciated if you guide me how to fix this issue.

 

Super Contributor
Posts: 490

Re: Import STATA files to SAS

Could you post the code you used to import the STATA file?

Contributor
Posts: 26

Re: Import STATA files to SAS

Hi,

 

I used window import menu (import data) to import STATA files.

Super Contributor
Posts: 490

Re: Import STATA files to SAS

[ Edited ]

Is your dataset STATA 12 or Later?

Contributor
Posts: 26

Re: Import STATA files to SAS

I don't know and the STATA file was created by my coauthor. Is that a reason?

Super Contributor
Posts: 490

Re: Import STATA files to SAS

Yes, Save the file as an earlier release of Stata (Version 12 or earlier) or save the file as a tab-delimited file. Then try to import it again.

Ask a Question
Discussion stats
  • 5 replies
  • 739 views
  • 0 likes
  • 2 in conversation