Indiana University
University Information Technology Services
  
What are archived documents?
Login>>
Login

Login is for authorized groups (e.g., UITS, OVPIT, and TCC) that need access to specialized Knowledge Base documents. Otherwise, simply use the Knowledge Base without logging in.

Close

In Linux, using Stat/Transfer, how do I convert a SAS data set into a Stata data file?

The Stat/Transfer program converts data to and from various statistical and database packages.

Note: To access Stat/Transfer on Quarry, you need to temporarily add a StatTransfer keyword to your software environment using the following command:

soft add +StatTransfer

You can also change your environment permanently by editing your ~/.soft file. For more, see On Big Red and Quarry at IU, how can I use SoftEnv to customize my software environment?

To use Stat/Transfer to convert a SAS data set (e.g., input_data.sas7bdat) to a Stata data file (e.g., output_data.dta ), at the Unix prompt, enter:

st input_data.sas7bdat output_data.dta

You can find information about other file formats that Stat/Transfer supports by accessing the Stat/Transfer help files. To run Stat/Transfer, at the Unix prompt, enter:

st

At the st> prompt, enter:

help formats

For more about statistical and mathematical software, email the UITS Stat/Math Center, visit the center's web page, or phone 812-855-4724 (IUB) or 317-278-4740 (IUPUI). The center is located in Bloomington at 410 N. Park Avenue, and is open for consultation by appointment Monday-Friday 9am-5pm.

This is document avjr in domain all.
Last modified on April 19, 2011.

Comments/Questions/Corrections

Use this form to offer suggestions, corrections, and additions to the Knowledge Base. We welcome your input!

If you are affiliated with Indiana University and would like assistance with a specific computing problem, please use the Ask a Consultant form, or contact your campus Support Center.

Contact Information

Note: We will reply to your comment at this address. If your message concerns a problem receiving email, please enter an alternate email address.