Previous Topic: Implicitly Invoke Source ProgramsNext Topic: Execute OPS/REXX Source Programs from ISPF EDIT


Execute OPS/REXX Source Programs from ISPF Dialogs

You can invoke OPS/REXX source programs from in ISPF dialogs explicitly or implicitly as shown in the following example. Implicitly invoking a program, however, uses less overhead.

SELECT PGM(OI) PARM(member argument)
SELECT CMD(OI PROGRAM (member) [ARG(argument)] [SUBSYS(ssid)])
SELECT PGM(OX) PARM(member argument)
SELECT CMD(OX PROGRAM (dataset(member)) [ARG(argument)] [SUBSYS(ssid)])

Note: If you use PGM calls to issue the OX or OI command, you can specify the subsystem ID as an argument.

The PGM calls differ from the CMD calls only in the way parameters are passed. However, for CMD calls, ISPF Dialog Management services move the cursor to the bottom of the screen before the command starts to execute. This can be annoying; to avoid it, use PGM calls.

The OPS.CCLXEXEC library distributed with CA OPS/MVS contains examples of writing complex ISPF dialogs in OPS/REXX.