
EXITS -- An example of how to use system exits with REXX macros
---------------------------------------------------------------

To run:

    exits macroname [argstring]

A simple macro, TEST.CMD, has been provided, so just type:

    exits test

To try it out.

This runs the TEST.CMD file, which also runs TEST2.CMD.


Notes
-----

This simple example shows how exits are called when certain interesting
events occur.  Two things to remember:

   1) You have to register your exits with RexxRegisterExitExe
   2) You have to pass a list of exits you're interested in to
      RexxStart.

Look closely at the code in EXITS.C, which defines four exits -- one
is called on initiatlization, one on termination, one on external function
calls, and one on subcommand calls.

Notice also how the code in RUNMACRO.C has been modified slightly to
pass a list of exits to RexxStart.

