reply

Job streams or jobs that contain prompts are not completed until the assigned user provides confirmation. You can use the reply command to confirm a specific prompt or multiple prompts in one step.

Overview

Prompts are textual messages that pause a job or job stream from processing. These prompts act as an interface for user interaction offering predefined choices you can use to confirm or reply.

There are three types of prompts. For more information, see Prompt.

To run this command, you must have reply access to the following items:
  • The named or global prompts.
  • The prompts and their associated jobs or job streams (for unnamed prompts).

To confirm a message, type yes or no. When you confirm a prompt using the reply command, it resumes all associated jobs and job streams.

Syntax and command line options

You can enter the command as follows:
 ocli plan reply #{message_number | prompt_name} [reply_value] [noask]
Specify the message_number or prompt_name. At least one of these attributes is mandatory to run the command. The details required for each attribute are as follows:
message_number
Specify the unique message number assigned to the prompt.
prompt_name
Specify the prompt name. This attribute is applicable only if the prompt type is named or global. You can also use wildcard characters.
reply_value
Type yes to confirm the prompt or no to reject it. This attribute is mandatory.
noask
Confirm multiple instances of prompts at once, rather than providing permissions for each individual instance. This attribute is optional.

You can use wildcard characters to confirm multiple instances of prompts with a single step. The scenarios are explained in the following examples.

Examples

  1. The job stream GOLD contains the prompt #4DOLLAR. The unique message number for the prompt is 4. Run the command as follows to confirm the prompt:
    ocli plan reply DOLLAR yes
    or
    ocli plan reply #4 yes
  2. The job streams SALARY_JUNE and SALARY_JULY contain the prompts SALARY_ADVANCE and SALARY_PEND, respectively. To confirm these multiple prompts in a single action, run the command as follows:
    ocli plan reply SAL@ yes