How Directives Are Processed

You place a directive (and its method code) after the program code. When you run a program containing directives, Rexx:

  1. Processes the directives first, to set up the program's classes, methods, and routines.
  2. Runs any program code preceding the first directive. This code can use any classes, methods, and routines set up by the directives.

    Once Rexx has processed the code preceding the directive, any public classes and objects the program defines are available to programs having the appropriate ::REQUIRES directive.