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.
- 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
ocli plan reply #{message_number | prompt_name} [reply_value] [noask]- 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
- 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:
orocli plan reply DOLLAR yesocli plan reply #4 yes - 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