Using EXEC as a subcommand

The EXEC subcommand of EDIT and TEST performs the same basic functions as the EXEC command. However, a CLIST that is executed with an EXEC subcommand can execute only CLIST statements and other subcommands of the EDIT or TEST commands. A REXX exec executed with an EXEC subcommand can execute only REXX statements. When used to execute a REXX exec, the EXEC subcommand can use the data stack to provide information to EDIT or TEST. For information about writing CLISTs, see z/OS TSO/E CLISTs. For information about writing REXX execs, see z/OS TSO/E REXX User's Guide and z/OS TSO/E REXX Reference.