UCLA Academic Technology Services HomeServicesClassesContactJobs
Search

Installing SAS for Linux

These instructions give tips on installing SAS on Linux.  The first set of instructions assume that you are installing the software as a superuser (probably using the "root" account).  This is the easiest way to install the software, but carries some level of risk.  Remember that as a superuser, you can delete any files and could possibly remove files or replace files that you did not intend to.  Use this method with caution.

General Notes

See the instructions that come with your SAS packet.  In addition, the SAS website has some useful notes on installing SAS for linux.  The university of Virginia also has some useful installation notes.

Below is a quick rundown of how to install SAS.

Installing SAS as root

1. Open a terminal window. This first terminal window will be used for running the SAS install script.

2. Open a second terminal window. This second terminal window will used for mounting and unmounting floppy disks and CDs.

3. Insert floppy disk with setinit and mount it as shown below. Type the following commands in the second terminal window.

[root@statlinux ~]# mount /mnt/floppy
mount: block device /dev/fd0 is write-protected, mounting read-only

4. Insert CD #1 from install packet into the CD rom drive. In the second terminal window type the following.

[root@statlinux ~]# /mnt/cdrom/SASSETUP

Loading SAS System installation scripts, please wait...

     SAS System Installation Setup

Welcome to SAS Setup, a menu driven application used to install
and maintain the SAS System.  SAS Setup is fully documented in
the installation instructions included in your installation
package.  Online copies of the enclosures can be found in the doc
directory on the installation media, or in !SASROOT/doc once the
system is installed.

Some conventions used throughout SAS Setup are:
               *   indicates the default menu selection
             [ ]   indicates the default prompt or menu choice
             ( )   indicates a menu item is not selectable
       H, H#, #H   displays help for a menu or prompt
               G   goback to a previous menu or prompt
               Q   quits SAS Setup at any point

Press <Return> to continue...

5. Press the <return> key to continue.

SAS Setup Primary Menu
----------------------
 * 1.  Load Software from Media
   2.  Run Setup Utilities
   3.  Quit SAS Setup
   -------------------------------
   g: Goback    q: Quit    h: Help
   -------------------------------
Action ? [1] 1

6. Press 1 and then the <return> key to continue.

Load Software from Media
------------------------
 * 1.  Load all Software from Media
   2.  Load Selected Software
   3.  Load Software Maintenance Only
   4.  Load NLS Translations Only
   -------------------------------
   g: Goback    q: Quit    h: Help
   -------------------------------
Action ? [1] 1

7. Press 1 and then the <return> key to continue.

Please enter the directory path of the installation media. This can be
a mount point for the mounted CD or a disk location for downloaded
installation components. [/mnt/cdrom]

8. Press the <return> key to accept this path and continue.

Please enter the full path name for the target location for the SAS
System.  The directory must be empty if this is a new installation.
If you specify a directory that does not already exist, it will be
created for you.  Otherwise, the path should reference the root directory
of a valid SAS System installation.

Target location path?  [/usr/local/SAS_8.2]

9. Press the <return> key to accept this as the path for SAS.

You have specified the following path for your SAS System
target location:
   /usr/local/SAS_8.2

Is this correct?  [Y]

10. Press Y and then the <return> key to continue.

The following directory does not exist:
   /usr/local/SAS_8.2

Would you like to have it created?  [Y]

11. Press Y and then the <return> key to continue.

The  SETINIT information file is either expired, invalid, or cannot be
validated at this time. Do you wish to continue the install using this
SETINIT? [Y]

12. Press N and then the <return> key to continue.

Enter the directory path of the SETINIT information file to apply:  []

13. Type /mnt/floppy and then the <return> key to continue.

You have selected Graph Maps to be installed.  Because of the large size of
the Map files, they are stored in compressed format when installed to your
system to save disk space.  If you wish, these Maps can be uncompressed as
a part of the installation process.

Do you want to uncompress Maps during the install? [Y]

14. If you do not want the maps uncompressed, then type N and then the <return> key to continue.

Most SAS/ACCESS products require post-processing or validation
programs to run prior to use.  You will be asked to select which
products to process in the following select screen.  Only those
SAS/ACCESS products which require post-processing will be shown.

You may choose not to do the post-processing for SAS/ACCESS
products at this time, but the products will not work correctly
until the required post-processing is done. 

Press <Return> to continue...

15. Press <return> key to continue.

--------------------------------------------------------------Page 1 of 1-------
  1. SAS/ACCESS DB2                       2. SAS/ACCESS SYBASE                  
  3. SAS/ACCESS ORACLE                  

--------------------------------------------------------------------------------
'.' = unselected    '*' = selected     '|' = previously installed
--------------------------------------------------------------------------------
  #: select item      -#: deselect item          n: next page    g: goback
#-#: select range   -#-#: deselect range         p: prev page    q: quit
  *: select all       -*: deselect all    <return>: done         h: help

16. You probably don't want to install these. If so, press <return> key to continue.

No databases will be configured at this time.


Final disk space requirements (in MB):
   Total Available Disk Space:         4322
   Required for Installation:           650
                                    -------
   Remaining after Installation:       3672

There is sufficient disk space for installation.   


Do you wish to continue?  [Y]

15. Press Y and the <return> key to continue.

Working...
Extracting Options catalog...

The next media volume (LABEL: Solutions Disk 1) is required to continue the 
install.  (The LABEL for the currently mounted media is Installation Disk).

Please umount the current media and mount the next volume.  If
you use the same directory for the next media, simply press
'RETURN' at the prompt below when the new media is mounted.

However, if the next media volume is mounted in a separate
directory from the previous media, then you can enter the new
pathname at the prompt below.

Please press 'RETURN' when the new media is ready.


Media:   [/mnt/cdrom]

16. In the second terminal window type umount /mnt/cdrom and press return to unmount the CD in the CD rom drive. This should eject the CD. Insert the new CD and then return to the first terminal window and press return.

The media is valid.  Continuing installation... 

Extracting Base SAS Software...
Extracting Base SAS Samples...
Extracting SAS/AF Software...
Extracting SAS/ASSIST Software...
Extracting SAS/CONNECT Software...
Extracting SAS/CONNECT Samples...
Extracting SAS/ACCESS DB2 Software...
Extracting SAS/ACCESS DB2 Samples...
Extracting SAS/EIS Software...
Extracting SAS/EIS Samples...
Extracting SAS/ETS Software...
Extracting SAS/ETS Samples...
Extracting SAS/FSP Software...
Extracting SAS/GIS Software...
Extracting SAS/GIS Samples...
Extracting SAS/GRAPH Software...
Extracting SAS/GRAPH Samples...
Extracting Maps of US Counties (Large, Unprojected)...
Extracting Maps of US Counties (Projected)...
Extracting Maps of US States Outlines (Unprojected)...
Extracting Maps of Africa and the Middle East...
Extracting Maps of Asia/Pacific Region...
Extracting Maps of Europe...
Extracting Maps of North America...
Extracting Maps of Latin America...
Extracting Maps of Canada (Large)...
Extracting Maps of World Continents...
Extracting Map of the World...
Extracting Maps of US Counties (Huge, Unprojected)...
Extracting SAS/IML Software...
Extracting SAS/IML Samples...
Extracting SAS/INSIGHT Software...
Extracting SAS/INSIGHT Samples...
Extracting SAS/LAB Software...
Extracting SAS/ACCESS ODBC Software...
Extracting SAS/ACCESS ODBC Samples...
Extracting SAS OnlineTutor Software...
Extracting SAS/OR Software...
Extracting SAS/OR Samples...
Extracting SAS/ACCESS ORACLE Software...
Extracting SAS/ACCESS ORACLE Samples...
Extracting SAS/ACCESS PC File Formats Software...
Extracting SAS/QC Software...
Extracting SAS/QC Samples...
Extracting SAS/SHARE Software...
Extracting SAS/SHARE Samples...
Extracting SAS/SPECTRAVIEW Software...
Extracting SAS/SPECTRAVIEW Samples...
Extracting SAS/STAT Software...
Extracting SAS/STAT Samples...
Extracting SAS/ACCESS SYBASE Software...
Extracting SAS/ACCESS SYBASE Samples...

The next media volume (LABEL: SAS/Secure Disk) is required to continue the 
install.  (The LABEL for the currently mounted media is Solutions Disk 1).

Please umount the current media and mount the next volume.  If
you use the same directory for the next media, simply press
'RETURN' at the prompt below when the new media is mounted.

However, if the next media volume is mounted in a separate
directory from the previous media, then you can enter the new
pathname at the prompt below.

Please press 'RETURN' when the new media is ready.

16. In the second terminal window type umount /mnt/cdrom and press <return> to unmount/eject the CD from the CD rom drive. This should eject the CD. Insert the new CD and then return to the first terminal window and press <return>.

The media is valid.  Continuing installation... 

Extracting SAS/Secure 168-bit Software...

_______________________________________________________________________________

Creating the SAS config file for the following directory.  
   /home/local/SAS_8.2

Config file creation complete.

_______________________________________________________________________________

The following directory has been created:
   /home/local/SAS_8.2/sascfg

_______________________________________________________________________________

The SETINIT information from 
   /mnt/floppy/setinit.sas 

will be applied for the following directory. 
   /home/local/SAS_8.2

Please wait...

A backup copy of file:  
   /home/local/SAS_8.2/sashelp/core.sas7bcat

has been made to:  
   /home/local/SAS_8.2/sashelp/core.sas7bcat_030103.000


SETINIT application is complete.

_______________________________________________________________________________

The SAS executable in the following directory is being patched.  
   /home/local/SAS_8.2

Patching is complete. 

_______________________________________________________________________________

Desktop information is being configured for the following directory:  
   /home/local/SAS_8.2

Please wait... 

Desktop configuration is complete.

_______________________________________________________________________________

Creating the SAS online Help index for the following directory: 
   /home/local/SAS_8.2

Please wait...

SAS online Help index creation complete.

_______________________________________________________________________________

The SAS registry is being created for the following directory.  
   /home/local/SAS_8.2

Please wait...

Creation of the SAS registry is complete.

_______________________________________________________________________________

Beginning installation verification phase...

Installation verification complete.

_______________________________________________________________________________

Configuring user authorization for the following directory:  
   /home/local/SAS_8.2


User authorization complete.

_______________________________________________________________________________

SAS System Installation Setup Complete

The Install Was 100% Successful.

17. Make a soft link in /usr/local/bin pointing to SAS.  This will enable you (and others) to run SAS from any directory.

[root@statlinux ~]# cd /usr/local/bin
[root@statlinux bin]# ln -s /usr/local/SAS_8.2/sas sas

18. Reboot linux and SAS should be ready to run.

Installing SAS as a regular user

  1. Under construction

Running SAS

You can start SAS interactively by typing sas or you can run a SAS program (e.g. myprogram.sas) in batch mode in the background by typing.

[root@statlinux ~]# sas myprogram &

For more information on using SAS under linux, see the SAS companion for unix.


How to cite this page

Report an error on this page

UCLA Researchers are invited to our Statistical Consulting Services
We recommend others to our list of Other Resources for Statistical Computing Help
These pages are Copyrighted (c) by UCLA Academic Technology Services


The content of this web site should not be construed as an endorsement of any particular web site, book, or software product by the University of California.