log

This command displays the log for the specified job.

Syntax

zos log [jobid]

Arguments

jobid

The user must enter the jobid that he or she is interested in. The default for this argument is the last job run.

Options

-C=, --cols=

Specifies the terminal width for formatting. The user must enter a value with this option.

-h, --help

Displays a help message for this operation.

-d, --debug

Turns on debug output during this operation.

-v, --verbose

Turns on verbose output during this operation.

Examples

Example 1

To display the log for the last job, use the following command:

zos log

Example 2

To display the log for job 3 on the list returned by zos jobs, use the following command:

zos log ^3

Example 3

To display the log for job id itsajob, use the following command

zos log itsajob