Previous Topic: OPSBN FunctionNext Topic: Values OPSCA7 Returns


OPSCA7 Function

The OPSCA7 function lets you issue CA 7 commands from within your OPS/REXX programs. The OPSCA7 function cannot be used in rules.

Note: The OPSCA7 function can be used only in OPS/REXX.

OPSCA7 has the following format:

RC = OPSCA7(“[/LOGON userid;]command{;cmds}{;/LOGOFF}”)
/LOGON userid;

(Optional) Allows CA 7 security to authorize a command based on the specified userid.

Note: For more information about the /LOGON userid; argument, see the CA 7 Security Guide.

Command{;cmds}

Specifies the commands to be issued to CA 7.

OPSCA7 calls the U7SVC program. By default, the U7SVC program communicates with instance CA71, but you can specify the parameter CA7=CA7n to communicate with another instance.

The same CA7= parameter can be specified in the OPSCA7 function.

RC = OPSCA7("CA7=CA7n;/LOGON=userid;your CA7 command;/LOGOFF")

Note: For the most current information about CA 7 commands, see the CA 7 documentation.

Example: Issue CA 7 Command

RC = OPSCA7(“/LOGON UID001;DEMAND,JOB=ACTJ001;/LOGOFF”)