Some types of AOF rules do not process responses from host commands. For example, message rules run synchronously in the z/OS subsystem exit, so they do not wait for commands to generate output.
To issue a command from a rule that does not process command responses:
Example: Issue Commands from Rules
The following OPS/REXX program issues a 'D A,L' operator command and displays the responses at the terminal of the user:
address OPER "D A,L" /* responses placed in external data queue */ do while queued() > 0 parse pull x /* retrieve a line from the queue */ say x /* display it at the terminal */ end
If a rule needs to issue a command, and then act upon the command response, make the rule a request rule and invoke it from a different command procedure.
|
Copyright © 2014 CA Technologies.
All rights reserved.
|
|