Understanding the four components of a REXX EXEC
This section briefly describes the four components of REXX EXECs.
There are four steps to writing REXX EXECs:
defining the language
All EXECs are assumed to be CLISTs unless the first statement identifies the EXEC as a REXX EXEC. Refer to the IBM publication TSO Extensions Version 2: REXX/MVS User’s Guide for a complete discussion.
passing data
You must include a statement--called the ARG statement--that defines the input parameters to be used by the EXEC logic.
documenting the EXEC
You can include comments, enclosed by /* and */, throughout the EXEC to describe the purpose of the EXEC statements
writing the logic
A logic section contains REXX EXEC statements and commands, and MainView AutoOPERATOR IMFEXEC commands that perform user-defined automation tasks. Use the IMFEXEC commands to specify the automation actions and commands that you want the EXECs to perform.
Each of these steps is described in the following sections.