Previous Topic: 2.2.2 SOURCE Modules

Next Topic: 2.2.4 PROTOLIB Modules

2.2.3 MACAUTOS Modules


The CA MICS MACAUTOS library contains SAS %MACROS which
resolve to logic executed by CA MICS. These macros are used
at execution time, and may be used in any CA MICS process.
Changes to this library take effect in execution of the next
job that uses the module.

Normally SAS resolves a %MACRO reference from the list of
all previously compiled %MACROs.  %MACROS may be included by
SAS into programs by explicit coding in the SYSIN DD, or may
be %INCLUDEd.  If a %MACRO reference cannot be resolved from
the list of previously compiled %MACROs, SAS will examine
data sets in the SASAUTOS concatenation for a member of the
same name as the macro referenced.  If it finds such a
member, and the member contains a %MACRO statement defining a
macro of the same name, SAS will use that macro definition
automatically, without "preloading" the macro.

The CA MICS MACAUTOS library is concatenated into the
SASAUTOS DD statement in all CA MICS PROCs. This allows
CA MICS macros in this library to be automatically included
into the program logic without preloading.

Members in the CA MICS MACAUTOS library are generally named
according the following conventions.

    cccxxxx  - contains SAS macros or logic to relate to the
               'ccc' component's execution in all database
               units (eg.  SMFACCT)

    fffxxxx  - contains SAS macros or logic to relate to the
               'fff' file's definition in all database
               units (eg.  JOBKEEP)

    xxxxxxxx - contains generic SAS macros or general purpose
               CA MICS SAS logic that apply to all CA MICS
               components in all database units (eg. DERVST)
               The name of the member is usually an
               abbreviation of the module's function.  One
               example is "LOGUP", the routine that updates
               the CA MICS input history log.

Legend:
   ccc      - a component identifier
   fff      - a file identifier
   xxx to
   xxxxxxxx - some label describing the function of the
              module.