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 SAS 9.xx, how do I use autoexec.sas?

You can save system variables and frequently used options in the autoexec.sas file, which is executed when SAS initializes, before any user input is accepted.

In SAS 9.xx for Windows, the installer might not automatically generate a autoexec.sas file. If it does not, you must create one manually, and then save it in the same directory as sas.exe. The following is an example of an autoexec.sas file:

OPTIONS LINESIZE=80 PAGESIZE=55 NOCENTER; LIBNAME sm 'c:\data'; FILENAME smf 'c:\data\out.txt';

By default, autoexec.sas is located in the same directory as sas.exe.

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 arup in domain all.
Last modified on January 27, 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.