Previous Topic: Use OPSCMD Subcommand Mode

Next Topic: How OPSCMD Retrieves Command Output

Use OPSCMD with z/OS REPLY Command

You can use OPSCMD to reply to any WTOR message. OPSCMD checks each verb in the system command you specify to see if that verb is R or REPLY; if so, OPSCMD issues the command using the z/OS master console. The only output from such commands is a message stating that there is no z/OS response to a reply.

The length of the reply text specified through OPSCMD must be less than or equal to the maximum reply length. You receive no error message if you specify reply text that is too long. For example, consider the following:

opscmd command(reply 29,n)
opscmd r 35,n
oc     reply 99,'y'

You can obtain output from REPLY commands by using the CMDRESP(REPLY) keyword to override the usual NOOUTPUT default. A subsystem or extended console is used to issue the REPLY command.