Configuring the SAS System for Year 2000 Testing on UNIX

Configuring the SAS System for Year 2000 Testing on UNIX

Date: 05/13/98

To set up your SAS image to test in the Year 2000 time frame, you must install 3 new SAS modules and execute a PROC DATECHG data stream, similar to a PROC SETINIT. The modules can be downloaded from our Web site, and the PROC DATECHG stream can be obtained from SAS Institute Technical Support. Once you have installed the modules and run the PROC DATECHG stream, you will be able to run your current version of the SAS System with your system clock set to a date in the future or set to the current date.

These instructions describe how to download and install the 3 modules.

SPECIAL NOTE: AS WITH ANY SYSTEM UPDATE, WE STRONGLY RECOMMEND THAT YOU HAVE A SUCCESSFUL SYSTEM BACKUP OF YOUR CURRENT SAS SYSTEM BEFORE PROCEEDING WITH THE UPDATE.

SAS System Prerequisites for new modules

Before you attempt to install and run the new modules, you should ensure you have the following version of the SAS System:

Operating System

SAS Release

TS Level

AIX

6.12

TS045

HPUX

6.12

TS045

Sun4/Solaris2

6.12

TS045

Digital UNIX

6.12

TS040

Downloading the Modules

First, you must download the specific tar file with the 3 new modules from either the SAS Technical Support web site or from the anonymous FTP site.

  1. To download from the Web site, click on the appropriate link below:

    UNIX Platform and SAS Release

    Tar file URL location

    AIX 6.12 TS045

    datechg.ar2.tar.Z

    HPUX 6.12 TS045

    datechg.hp8.tar.Z

    SUN4 6.12 TS045

    datechg.slx.tar.Z

    Digital UNIX 6.12 TS040

    datechg.alf.tar.Z

  2. To download from the anonymous FTP server, issue the following commands:

Installing the Modules

Once you have downloaded the compressed tar file, follow these steps to uncompress the file and move the new modules into the correct location:

  1. Change directory to your SAS installation directory, (also referred to as !SASROOT):

    cd /usr/local/sas612

  2. mkdir year2k
    cd year2k

  3. Copy the downloaded file into this year2k directory
  4. uncompress datechg.platform.tar
  5. tar xvf ./datechg.platform.tar
  6. You should now have 3 new modules, named:

    sas_y2k, sassetin, sasdatec

  7. Change permissions on modules for execution

    chmod 755 *

  8. Now, set up a special configuration file so these files can be found in the SAS search path:

    cp ../config.sas612 ./config.sas612.year2k

  9. From now on, when you want to run SAS with year2k modules, you will be required to add this option to your SAS invocation:

    -config !SASROOT/year2k/config.sas612.year2k

  10. Also, you must edit this new config.sas612.year2k file and add one -PATH statement. Once you are in edit mode of the config file, find the series of -PATH !SASROOT statements. You MUST add the following line so that it will be the VERY FIRST -PATH statement in the config file. This is CRUCIAL!

    -PATH !SASROOT/year2k

  11. Finally, you must "patch" this new sas_y2k file with the current !SASROOT value used for your current installation. First, cd back to the original !SASROOT location:

    cd /usr/local/sas612

    ./utilities/bin/patchname ./year2k/sas_y2k /usr/local/sas612

Running the new modules

The setup of the modules is now complete. If done successfully, you should now proceed to the application of the new PROC DATECHG stream which will be provided by Technical Support in a separate fax or email. Once the PROC DATECHG stream has been applied successfully, you can then set your machine date into the Year 2000 and invoke SAS via:

/usr/local/sas612/year2k/sas_y2k -config !SASROOT/config.sas612.year2k

With this setup, you can still use your same SAS directory setup for Year 2000 and non-Year 2000 invocations. The key is the new SAS module sas_y2k and the special configuration file config.sas612.year2k that was just created.

If you encounter any problems, please contact SAS Technical Support at 919-677-8008 or via the Web at http://www.sas.com/ts. If you have a current tracking number open, please be sure to refer to the open number.