Newsgroups: bit.listserv.sas-l
Date:         Tue, 29 Sep 1992 08:37:00 EDT
Reply-To:     Sally Muller <UNCSM1@UNC.BITNET>
From:         Sally Muller <UNCSM1@UNC.BITNET>
Subject:      "Mini" Version of PC SAS 6.04!!!!!!

----------------------------------------------------------------------
SUMMARY:  Do you have SMALL disks and focused needs?
REL/PLTF: 6.04 PC SAS
E-ADDR:   uncsm1@unc.bitnet
NAME:     Sally Muller
PH/ADDR:  919-962-6501  OIT CB#3455, UNC, Chapel Hill NC 27514
----------------------------------------------------------------------
Hi All!
Have got to lay off the anchovies.....last night was struck by fit of
creativity....wrote an entire document on how to reduce the size of PC
SAS by leaving out components....it was a *LONG* night.... :-)

************************************************************************

                          Mini Version of SAS 6.04
                          ------------------------

Some personal computers (PCs) may not have the capacity to load
the complete version of the SAS System on their hard disks. The
first part of this document describes possibilities for
customizing a "mini" version of Base SAS and what you need to do
to install it. The final part of this document describes some
additional "add-on" procedures and products.

With this version of SAS, you'll get the following:
  * the SAS Display Manager System
  * the DATA step
  * the PRINT procedure
  * the SORT procedure.
Because the SAS system is modular, you can extend this basic set
on a component by component basis at the procedure or function
level. Lists of components are given later in this document.


The SAS Display Manager System includes the following three primary
windows:
  * the PROGRAM EDITOR (PGM) window, where you enter and submit SAS
    statements
  * the LOG window, where you can browse and scroll the SAS log
  * the OUTPUT window, where you can browse and scroll output from
    your SAS session.
This version does not include the help facility or special
windows such as DIR and LIBNAME.  If you try to invoke one of
these windows, you receive a message indicating the window or
some related module cannot be loaded.  This also applies to other
components of the SAS System that are not included in your
"reduced" version.


All SAS statements used in the DATA step are available in this
version.  The DATA step functions, informats, and formats
included in the initial set are the following:

                      +---------------------+
                      | DATA Step Functions |
                      +---------------------+
  Arithmetic Functions                   Truncation Functions
    ABS             MOD                    CEIL            INT
    MAX             SIGN                   FLOOR           ROUND
    MIN             SQRT                   FUZZ            TRUNC
  Mathematical Functions                 Trigonometric Functions
    EXP             LOG10                  COS             TAN
    LOG             LOG2                   SIN
  Sample Statistic Functions             Character Functions
    CSS             RANGE                  BYTE            REVERSE
    CV              SKEWNESS               COLLATE         RIGHT
    KURTOSIS        STD                    COMPRESS        SCAN
    MAX             STDERR                 INDEX           SUBSTR
    MEAN            SUM                    INDEXC          TRANSLATE
    MIN             USS                    LEFT            TRIM
    N               VAR                    LENGTH          UPCASE
    NMISS                                  RANK            VERIFY
                                           REPEAT
                                         Special Functions
                                           SOUND

                    +-----------------------+
                    | Informats and Formats |
                    +-----------------------+
  Numeric Informats                      Numeric Formats
    w.                                     w.
    w.d                                    w.d
    Ew.d                                   BESTw.
                                           Ew.d
  Character Informats                    Character Formats
    $w.                                    $w.
    $CHARw.                                $CHARw.
    $VARYINGw.                             $VARYINGw.
                                         Date, Time, and Datetime Formats
                                           DATEw.          NENGOw.
                                           DATETIMEw.d     TIMEw.d
                                           DDMMYYw.        TODw.
                                           HHMMw.d         WEEKDATEw.
                                           HOURw.d         WEEKDATXw.
                                           JULIANw.        WORDDATEw.
                                           MMDDYYw.        WORDDATXw.
                                           MMSSw.d         YYMMDDw.
                                           MONYYw.         YYQw.



           How to install the Mini Version of SAS
           ---------------------------------------

It is assumed that you have a complete version of Base SAS
installed on a PC, hereafter referred to as homeSAS.  You need to
know the SASroot directory of homeSAS, which is where the SAS
System is installed.  In general the SASroot directory is C:\SAS.
Several subdirectories of the SASroot directory are created when
the SAS System is installed.  This "mini" version of Base SAS
uses files from the following directories:
  * SASroot
  * SASroot\SASHELP
  * SASroot\SASMSG
  * SASroot\SASEXE\CORE


                 BACKUP Base Files to Diskette
                 ------------------------------

You need to "copy" the following files from homeSAS to a
diskette.  The DOS command BACKUP is recommended for copying
these files, in case multiple diskettes are needed.  This "mini"
version of Base SAS uses approximately 1.23 megabtyes of disk
space.  Once you have the files on a diskette(s), you can use the
DOS command RESTORE to "copy" the files on another PC.

               Directory      |       File
         ---------------------|-------------------
          SASroot             | SAS.EXE
                            --|--
          SASroot\SASHELP     | CORE.SCT
                            --|--
          SASroot\SASMSG      | MSGDIR.MSG
                              | BASE.MSG
                              | CORE.MSG
                            --|--
          SASroot\SASEXE\CORE | SASIO602.EXE
                              | SASXFPEM.EXE
                              | SASXKERN.EXE
                              | SASXKINI.EXE
                              | SASYH.EXE
                              | SASXSHEL.EXE
                              | SASXSTMT.EXE
                              | SASXFNC.EXE
                              | SASXFS.EXE
                              | SASMDS.EXE
                              | SASMDSC.EXE
                              | SASMDSI.EXE
                              | SASMDSP.EXE
                              | SASMDSR.EXE
                              | SASMDSH.EXE
                              | SASWFTME.EXE
                              | SASWFDTE.EXE
                              | SASXATTR.EXE
                              | SASXSEM.EXE
                              | SASXZP.EXE
                              | SASPRINT.EXE
                              | SASSORT.EXE
                              | SASXDM.EXE
                              | SASXED.EXE
                              | SASWUCHR.EXE
                              | SASWUEXP.EXE
                              | SASWUFNS.EXE
                              | SASWUMOD.EXE
                              | SASWUSIN.EXE
                              | SASWUSTD.EXE


                    BACKUP Device Driver File to Diskette
                    --------------------------------------

You also need to know the device on which you will be running the
"mini" version of Base SAS.  The following table lists the
possible devices and the associated files you need to copy.
Choose an IBM equivalent for IBM ompatibles.  The device files
are stored in the SASroot\SASEXE\CORE directory.

                   Device                   |    File
         -----------------------------------|--------------
          IBM XT Monochrome                 | SASXDIMX.EXE
          IBM AT Monochrome                 | SASXDIMA.EXE
          IBM XT with CGA                   | SASXDICX.EXE
          IBM AT with CGA                   | SASXDICA.EXE
          IBM XT with EGA                   | SASXDIEX.EXE
          IBM AT with EGA                   | SASXDIEA.EXE
          IBM VGA                           | SASXDIVA.EXE
          IBM XT PC-3270                    | SASXDNCX.EXE
          IBM AT PC-3270                    | SASXDNCA.EXE
          Compaq AT Color                   | SASXDICA.EXE
          Compaq (plasma)                   | SASXDCPA.EXE
          HP Vectra Color                   | SASXDVCA.EXE
          Leading Edge XT                   | SASXDICX.EXE
          Wang Monochrome                   | SASXDWGM.EXE
          Wang Color                        | SASXDWGC.EXE
          AT&T Monochrome                   | SASXDICX.EXE
          AT&T Color                        | SASXDICX.EXE
          Non-IBM compatible using ANSI.SYS | SASXDASY.EXE



                     Modify CONFIG.SAS File
                     -----------------------

The CONFIG.SAS file contains configuration options, which affect
how the SAS System initializes its interfaces with your computer
hardware and the perating system.

The following is a recommended CONFIG.SAS file for this "mini"
version of Base SAS.  You should have a copy of CONFIG.SAS in the
directory(s) from which you run SAS sessions.

 +-----------------------------------------------------------------------+
 |                                                                       |
 | /*  Mini Version of Base SAS -- Default Configuration File         */ |
 | /*                                                                 */ |
 | /*  You may edit this configuration file to tailor the SAS System  */ |
 | /*  to your needs.                                                 */ |
 |                                                                       |
 |                                                                       |
 | /*  SASroot directory  */                                             |
 |                                                                       |
 | -SET SASROOT C:\SAS                                                   |
 |                                                                       |
 | /*  Full-screen device driver  */                                     |
 |                                                                       |
 | -FSDEVICE SASXDICA                                                    |
 |                                                                       |
 | /*  Directory definitions  */                                         |
 |                                                                       |
 | -sashelp   !sasroot\sashelp           /*  help file     directory  */ |
 | -sasuser   sasuser                    /*  user profile  directory  */ |
 | -work      saswork                    /*  work          directory  */ |
 | -msg       !sasroot\sasmsg            /*  message file  directory  */ |
 |                                                                       |
 | /*  Display Manager mode  */                                          |
 |                                                                       |
 | -dms                                                                  |
 |                                                                       |
 | /*  SAS executable files search order  */                             |
 |                                                                       |
 | -path      !sasroot\sasexe\core                                       |
 | -path      !sasroot\sasexe\base                                       |
 | -path      !sasroot\sasexe\stat                                       |
 | -path      !sasroot\sasexe\iml                                        |
 | -path      !sasroot\sasexe\graph                                      |
 | -path      !sasroot\sasexe\or                                         |
 | -path      !sasroot\sasexe\ets                                        |
 | -path      !sasroot\sasexe\qc                                         |
 |                                                                       |
 | /*  Use 5 buffers of 512 bytes to decrease disk accesses and  */      |
 | /*  improve performance.                                      */      |
 |                                                                       |
 | -filebuffer  5 512                                                    |
 |                                                                       |
 | /*  Cache often read only files for improved performance.     */      |
 | /*  Do not cache directories that may contain SAS data sets   */      |
 | /*  or SAS catalogs.                                          */      |
 |                                                                       |
 | -filecache !sasroot\sasexe\core  15                                   |
 | -filecache !sasroot\sasexe\base   5                                   |
 | -filecache !sasroot\sasmsg        5                                   |
 |                                                                       |
 +-----------------------------------------------------------------------+
    Tip! One possibly useful trick is to include the floppy disk
    drive as the last item in the "path" list. Then if you should try
    to use a module not in your "reduced" version, you will be
    prompted to insert a floppy diskette containing the module in
    your floppy drive. If you do so, then the program will continue
    to execute with no problem. If you do not, then that component
    will not be executed but the remaining program will try to
    continue on.  If you want this feature change the above "path"
    lists to:

    -path      !sasroot\sasexe\corea:     /* if a: is floppy drive */     |
    -path      !sasroot\sasexe\basea:                                     |
    -path      !sasroot\sasexe\stata:                                     |
    -path      !sasroot\sasexe\imla:                                      |
    -path      !sasroot\sasexe\grapha:                                    |
    -path      !sasroot\sasexe\ora:                                       |
    -path      !sasroot\sasexe\eta:                                       |
    -path      !sasroot\sasexe\qca:                                       |

Change the -FSDEVICE option in the CONFIG.SAS file based on
the device you select (from the device list above).  The
recommended -FSDEVICE options are as follows:

             Device     |                FSDEVICE Specification
   ---------------------|---------------------------------------------------
    IBM XT Monochrome   | -fsdevice SASXDIMX
    IBM AT Monochrome   | -fsdevice SASXDIMA
    IBM XT with CGA     | -fsdevice SASXDICX
    IBM AT with CGA     | -fsdevice SASXDICA
    IBM XT with EGA     | -fsdevice SASXDIEX
    IBM AT with EGA     | -fsdevice SASXDIEA
    IBM VGA             | -fsdevice SASXDIVA
    IBM XT PC-3270      | -fsdevice SASXDNCX
    IBM AT PC-3270      | -fsdevice SASXDNCA
    Compaq AT Color     | -fsdevice SASXDICA NOWAIT
    Compaq (plasma)     | -fsdevice SASXDCPA
    HP Vectra Color     | -fsdevice SASXDVCA
    Leading Edge XT     | -fsdevice SASXDICX
    Wang Monochrome     | -fsdevice SASXDWGM
    Wang Color          | -fsdevice SASXDWGC
    AT&T Monochrome     | -fsdevice SASXDICX MODE=BW80 GRAY=BLACK BLACK=WHIT
    AT&T Color          | -fsdevice SASXDICX
    Non-IBM compatible  | -fsdevice SASXDASY
       using ANSI.SYS   |

If you specify the SASXDASY driver, you must also specify
DEVICE=ANSI.SYS in the DOS CONFIG.SYS file.

If you install the "mini" version of Base SAS in a SASroot
directory other than that of homeSAS, you will need to change the
-SET SASROOT option in the CONFIG.SAS file.  Refer to the "SAS
Language Guide for Personal Computers, Release 6.03" and the file
SASroot\CONFIG.HLP for more details about CONFIG.SAS.



                    Other Components of the SAS System
                    ----------------------------------

There are other components of the SAS System that you may wish to
include in your customized version.

                      +---------------------------+
                      | Other DATA Step Functions |
                      +---------------------------+
  The DATA step functions are stored in the SASroot\SASEXE\CORE
  directory.  They are listed by file, as follows:

          File        |               Function
      ----------------|--------------------------------------------
       SASWUASN.EXE   |    Trigonometric: ARCOS
                      |                   ARSIN
                      |                   ATAN
                    --|--
       SASWUBET.EXE   |      Probability: PROBBETA         PROBNEGB
                      |                   PROBBNML         PROBT
                      |                   PROBF
                      |        Quantiles: BETAINV
                      |                   FINV
                      |                   TINV
                    --|--
       SASWUDGM.EXE   |             Math: DIGAMMA
                    --|--
       SASWUDTE.EXE   |      Date & Time: DATE             MINUTE
                      |                   DATEJUL          MONTH
                      |                   DATEPART         QTR
                      |                   DATETIME         SECOND
                      |                   DAY              TIME
                      |                   DHMS             TIMEPART
                      |                   HMS              TODAY
                      |                   HOUR             WEEKDAY
                      |                   JULDATE          YEAR
                      |                   MDY              YYQ
                    --|--
       SASWUERF.EXE   |      Probability: PROBNORM
                      |        Quantiles: PROBIT
                      |             Math: ERF
                      |                   ERFC
                    --|--
       SASWUFIN.EXE   |        Financial: COMPOUND         DEPSYD
                      |                   DACCDB           DEPTAB
                      |                   DACCDBSL         INTRR
                      |                   DACCSL           IRR
                      |                   DACCSYD          MORT
                      |                   DACCTAB          NETPV
                      |                   DEPDB            NPV
                      |                   DEPDBSL          SAVING
                      |                   DEPSL
                    --|--
       SASWUFZS.EXE   | State & Zip Code: FIPNAME          STNAMEL
                      |                   FIPNAMEL         ZIPFIPS
                      |                   FIPSTATE         ZIPNAME
                      |                   STFIPS           ZIPNAMEL
                      |                   STNAME           ZIPSTATE
                    --|--
       SASWUGAM.EXE   |             Math: GAMMA
                    --|--
       SASWUGMM.EXE   |      Probability: POISSON
                      |                   PROBCHI
                      |                   PROBGAM
                      |        Quantiles: CINV
                      |                   GAMINV
                    --|--
       SASWUHYP.EXE   |      Probability: PROBHYPR
                    --|--
       SASWUINT.EXE   |      Date & Time: INTCK
                      |                   INTNX
                    --|--
       SASWULGM.EXE   |             Math: LGAMMA
                    --|--
       SASWURND.EXE   |    Random Number: NORMAL           RANPOI  *
                      |                   RANBIN  *        RANTBL  *
                      |                   RANCAU  *        RANTRI  *
                      |                   RANEXP  *        RANUNI  *
                      |                   RANGAM  *        UNIFORM
                      |                   RANNOR  *
                      |         * Function and Call Subroutine
                    --|--
       SASWUSYM.EXE   |          Special: SYMGET
                      |                   SYMPUT
                    --|--
       SASWUTNH.EXE   |       Hyperbolic: COSH
                      |                   SINH
                      |                   TANH

                          +-------------------+
                          | Other SAS Formats |
                          +-------------------+
  The SAS formats are stored in the SASroot\SASEXE\CORE directory.
  They are listed by file, as follows:

          File        |               Format
      ----------------|--------------------------------------------
       SASWFBIN.EXE   |        Numeric: HEXw.            PIBw.d
                      |                 IBw.d            PKw.d
                      |                 PDw.d            RBw.d
                      |      Character: $HEXw.
                    --|--
       SASWFMSC.EXE   |        Numeric: COMMAw.d         ROMANw.
                      |                 DOLLARw.d        SSNw.
                      |                 FRACTw.          Zw.d

                          +---------------------+
                          | Other SAS Informats |
                          +---------------------+
  The SAS informats are stored in the SASroot\SASEXE\CORE directory.
  They are listed by file, as follows:

          File        |               Informat
      ----------------|--------------------------------------------
       SASWIBIN.EXE   |        Numeric: HEXw.            PIBw.d
                      |                 IBw.d            PKw.d
                      |                 PDw.d            RBw.d
                      |      Character: $HEXw.
                    --|--
       SASWIDTE.EXE   |           Date: DATEw.           MONYYw.
                      |                 DDMMYYw.         NENGOw.
                      |                 JULIANw.         YYMMDDw.
                      |                 MMDDYYw.         YYQw.
                    --|--
       SASWIMSC.EXE   |        Numeric: BZw.d
                      |                 COMMAw.d
                      |      Character: $CHARZBw.
                    --|--
       SASWITME.EXE   |    Date & Time: DATETIMEw.d
                      |                 TIMEw.d


                  +----------------------+
                  | Other SAS Procedures |
                  +----------------------+
| Dave, I changed the order around of things here....

You can include individual procedures or whole products in your
customized version of SAS.  In general, the name of a file
indicates the name of the procedure.  For example, PROC FREQ is
stored in SASFREQ.EXE in the SASroot\SASEXE\BASE directory.  Some
procedures do not follow this rule:

       Procedure |      Directory         |     File
      -----------|------------------------|----------------
       APPEND    |  SASroot\SASEXE\CORE   |  SASUTIL.EXE
       CONTENTS  |                        |
       COPY      |                        |
       DATASETS  |                        |
               --|--                    --|--
       MEANS     |  SASroot\SASEXE\BASE   |  SASMEANS.EXE
       SUMMARY   |                        |
               --|--                    --|--
       ANOVA     |  SASroot\SASEXE\STAT   |  SASGLM.EXE
       GLM       |                        |
               --|--                    --|--
       LIFEREG   |  SASroot\SASEXE\STAT   |  SASLIFER.EXE
       PROBIT    |                        |
               --|--                    --|--
       AUTOREG   |  SASroot\SASEXE\ETS    |  SASAUTOR.EXE
       PDLREG    |                        |
      -----------|------------------------|----------------
            *** This in not a complete list ***
                of all such procedures.

Of course, any procedures and products you want to include in
your customized version of SAS must be installed in homeSAS
before you can copy (BACKUP) them.

Also worth noting, the CALIS and MODEL procedures need the file
SASroot\SASEXE\CORE\SASCMPA.EXE as well as their individual
procedure files SASroot\SASEXE\STAT\SASCALIS.EXE and
SASroot\SASEXE\ETS\SASMODEL.EXE .

                  +----------------------+
                  | Other SAS Products   |
                  +----------------------+

IMPORTANT!  Message files (listed in the table below) are
associated with each product. These files are stored in the
SASroot\SASMSG directory.  You will want to copy the appropriate
message file(s) if you include any procedure from one of the SAS
products in your customized version.

The remaining SAS products are stored in the following
directories:

      Product          |      Directory         |    Message File
-----------------------|------------------------|---------------------
 Base SAS Procedures   |  SASroot\SASEXE\BASE   |  (already included
                       |                        |  in "mini" version)
 SAS/STAT Procedures   |  SASroot\SASEXE\STAT   |  STAT.MSG
                       |                        |  STAT2.MSG
                       |                        |  CMP.MSG
 SAS/ETS Procedures    |  SASroot\SASEXE\ETS    |  ETS.MSG
                     --|--                    --|--
 SAS/IML Procedures    |  SASroot\SASEXE\IML    |  IML.MSG
 SAS/QC Procedures     |  SASroot\SASEXE\QC     |  QC.MSG
 SAS/OR Procedures     |  SASroot\SASEXE\OR     |  OR.MSG
 SAS/GRAPH Procedures  |  SASroot\SASEXE\GRAPH  |  GRAPH.MSG

To enable graphics in the SAS/IML, SAS/QC, SAS/OR, and SAS/GRAPH
procedure you need to include the graphics sublib routines.  User
response to this information will determine whether we document
details about the graphics sublib in the future.
Comments: Gated by NETNEWS@AUVM.AMERICAN.EDU