Previous Topic: AP PPQ—Write to QueueNext Topic: ADDRESS AP Return Codes


AP REXX—Execute a REXX EXEC

ADDRESS AP REXX sends a command to an MSF-connected CA Automation Point system to execute a REXX EXEC. CA OPS/MVS can send REXX string commands up to 30,000 characters long.

ADDRESS AP REXX command has the following syntax:

ADDRESS AP 'REXX {SYSTEM(apsysname)} {PROGRAM(REXX-program-name)}
  [ARG(data)]'
SYSTEM

Defines the 1- to 8-character MSF name of the CA Automation Point system.

PROGRAM

Defines the 1- to 256-character name of the REXX program. The program name can contain alphanumeric characters and any of these special characters: ! @ # $ _

The program name cannot contain blanks.

ARG

(Optional) Defines an arbitrary (possibly null) string of arguments to be passed to the REXX program. The length of this string may not exceed 30,000 characters in length, and must be character data only (no binary or packed decimal data).

If the argument string contains blanks or non-alphabetic characters, enclose the argument string in quotation marks.

Example: How to specify the argument string

ADDRESS AP
"REXX SYSTEM(SYS02X)",
"PROGRAM(PROGA)",
"ARG('This argument string contains blanks')"

AP REXX Sample Coding Statements