When you write a REXX exec,
you can store the exec in either
a sequential or partitioned data set. If you plan to create more
than one exec, it is easier to create a REXX library as a partitioned data set (PDS)
with execs as members.
If you create a PDS, you can allocate the PDS to a system file.
In the TSO/E address space, allocating a PDS containing execs to
a system file allows you to:
- Implicitly execute execs by simply entering the member name of
the data set that contains the exec.
- Invoke user-written external functions and subroutines written
in REXX that
are also allocated to a system file.
- Control the search order by concatenating the data sets within
the file.
In the TSO/E address space you can allocate a PDS containing execs
to either the SYSPROC or SYSEXEC file. In
non-TSO/E address spaces, you can allocate a PDS containing execs
to the SYSEXEC file only.