Procedure statement types

File Manager supports two types of procedure statements, that you can use to enhance the File Manager functions. These are:

  • A subset of DFSORT statements

    DFSORT is IBM's sort, merge, copy, analysis and reporting product. File Manager can exploit DFSORT's high-performance copy option for the DSC and DSP functions. (To configure File Manager to work with DFSORT, refer to the File Manager for z/OS Customization Guide.)

    If the data to be processed is suitable, you can enhance the File Manager print and copy actions by supplying a procedure containing statements from the subset of the applicable DFSORT statements supported by File Manager, instead of using equivalent REXX statements.

    If DFSORT is available, the input data set is not partitioned and the record format is not undefined, File Manager automatically uses the DFSORT COPY option to perform simple data set to data set copy and print actions. You can enhance this processing by supplying a procedure containing DFSORT statements.
    Note:
    1. File Manager does not use DFSORT COPY if the input data set is VSAM, unless there are DFSORT commands in the procedure.
    2. You cannot use DFSORT on a PDS or PDSE.
  • REXX programming statements

    REXX is a general purpose programming language similar to PL/I. It includes extensive parsing capabilities for character manipulation, extensive mathematical capabilities, and many built-in functions that perform processing, searching, and comparison tasks.

    REXX statements can be processed one at a time by the REXX interpreter or translated into another form for execution (compiled) like a traditional programming language. The initial overhead of compilation usually results in faster execution than interpretation when a large number of records is being processed. In either case, File Manager is able to exploit the power of REXX when processing REXX statements in a procedure.

    FASTREXX

    For a restricted set of REXX statements, File Manager can process the procedure internally, saving the overhead of invoking REXX, and generally resulting in faster processing of the procedure. Within File Manager, this subset of statements is referred to as FASTREXX.

    For the procedure to be executed as FASTREXX, every statement in it must be in the FASTREXX subset, otherwise the whole procedure is executed as REXX.

    If the procedure is not eligible for internal processing, it is either run by invoking REXX, or the File Manager function invoking the procedure is terminated, depending on the use of the *REXXPROC and *FASTREXX statements in the procedure.