# Using data files with statistical and mathematical software on IUanyWare

When using local data files (i.e., files on a disk drive, such as a computer hard disk or flash drive) on IUanyWare, you need to point the IUanyWare program to your local (client) machine. With programs that use graphical user interfaces, you can do this by finding the appropriate computer and directory in the "Open" dialog box in the File menu (see When I use an IUanyWare application, how do I save my files?).

In other software packages that require syntax (or have the option of using syntax), you may be required to type a path to access a file. See the following syntax examples for the specific application you are using.

Each software section lists three examples: one to read in a software-specific file (or library), one to import a Microsoft Excel file, and one to read in a tab-delimited text file (with three variables and variable names in the first row). All examples are set up such that the desired files are in the hard disk location of C:\Temp; be sure to customize your locations and commands as necessary for your specific file.

Note:
Due to compatibility issues between 64-bit and 32-bit Excel files, we recommend that you save Excel files as CSV files if you find errors importing Excel files.

## Mac

The above examples will work on a Mac when you put your files in the Temp folder in your home directory (e.g., /Users/<username>/Temp). If your files are on the desktop, you can change the path to \\Client\C$\Users\<username>\Desktop\. For example, to read an Excel file to Stata, the code becomes:  import excel "\\Client\C$\Users\<username>\Desktop\test.xlsx", clear

By default, the path \\Client\C\$\ points to the home directory on your Mac unless you have configured it otherwise. You will need to structure your file path accordingly.

If you have questions about using statistical and mathematical software at Indiana University, contact Research Analytics. Research Analytics is located on the IU Bloomington campus at Woodburn Hall 200; staff are available for consultation Monday-Friday 9am-noon and by appointment.

This is document bbtr in the Knowledge Base.

#### I need help with a computing problem

• Fill out this form to submit your issue to the UITS Support Center.
• Please note that you must be affiliated with Indiana University to receive support.
• All fields are required.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

#### I have a comment for the Knowledge Base

• Fill out this form to submit your comment to the IU Knowledge Base.
• If you are affiliated with Indiana University and need help with a computing problem, please use the I need help with a computing problem section above, or contact your campus Support Center.

Please provide your IU email address. If you currently have a problem receiving email at your IU account, enter an alternate email address.

Version: trunk