Using OPSREPLY and getting RC(84) - COMMAND BUFFER PARSE ERROR

book

Article ID: 131417

calendar_today

Updated On:

Products

CA OPS/MVS Event Management & Automation

Issue/Introduction

How to correct the RC(84)  - COMMAND BUFFER PARSE ERROR when using OPSREPLY

Customer is trying to use the OPSREPLY function to reply to an outstanding message when shutting down started tasks prior to system shutdown (e.g. OPSREPLY JOBNAME(nnnnnnnn) TEXT(STOP)). 

 When the OPSREPLY executes, a RC(84) is returned.   

Sample REXX code used:
trace i
imstask = 'x'
Address TSO "OPSREPLY JOBNAME("imstask") TEXT(/XYZ FREEZE)"
say 'rc='rc
do while queued() <> 0
pull q
say '>>' q
end
return

Environment

Release:
Component: OPSMVS

Resolution

The RC(84) indicates a syntax error.  Examine the code for errors.   

In this particular example above the customer needed to add a quote mark around the actual text as follows:

                             ADDRESS TSO "OPSREPLY JOBNAME("IMSTASK") TEXT('/XYZ FREEZE')"

The text needs to be within quotes because the OPSREPLY "TEXT" keyword contains a blank.   

Additional Information

For more information on the OPSREPLY, please refer to the OPSREPLY Command Processor section for the release that you are running.   For r13.5:
https://docops.ca.com/ca-opsmvs/13-5/en/reference-information/command-and-function-reference/poi-command-processors/opsreply-command-processor-compare-wtor-messages