CLI overview


This topic describes the CLI output, and possible return codes. For information about each CLI command, see CLI-command-reference.

Output

The command is processed synchronously and the output is redirected to STDOUT. When invoked in TSO, the output will be displayed on the screen. When invoked in a batch job, it will be redirected to a SYSPRINT DD card. If the requester of the command is not available, in the event that the job or TSO session was cancelled, the output will be printed in the executing agent's log. The exception is LISTDSN and LISTVOL outputs, which will not be printed to the agent's log as their outputs may be very large.

Return codes

The following table lists the possible return codes from CLI commands.

RC

Description

0

The command was executed successfully.

4

The command ended with a warning or no records were selected. An appropriate message is displayed.

8

The command ended in an error. An appropriate message is displayed.

10

Syntax error

12

A timeout occurred while the request was being processed or queued at the agent

14

No agent available— Unable to send request to agent

16

Unexpected error

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*