The way to display a job log depends on the status of the job.
- The Work with Job Logs (WRKJOBLOG) command can be used to display
pending job logs for completed jobs, all job log spooled files, or both.
For example, to display the list of pending job logs for all jobs that have
ended, enter:
WRKJOBLOG JOBLOGSTT(*PENDING)
- If the job is active or on a job queue, or if the job log is pending,
use the Display Job Log (DSPJOBLOG) command. For example,
to display the job log of the interactive job for user JSMITH at display station
WS1, enter:
DSPJOBLOG JOB(nnnnnn/JSMITH/WS1)
where nnnnnn is the job number.
- If the job has ended and the job log is written to an output file but
is not yet printed, use the Display Spooled File (DSPSPLF) command,
as follows:
DSPSPLF FILE(QPJOBLOG) JOB(001293/FRED/WS3)
to display the job logs for job number 001293 associated with
user FRED at display station WS3.
To display the job log of your own interactive job, do one of the
following:
- Enter the following command:
DSPJOBLOG
- Enter the WRKJOB command and select option 10 (Display job log) from the
Work with Job display.
- Press F10=Include detailed messages from the Command Entry display (this
key displays the messages that are shown in the job log).
- If the input-inhibited light on your display station is on and remains
on, do the following:
- Press the System Request key, then press the Enter key.
- On the System Request menu, select option 3 (Display current job).
- On the Display Job menu, select option 10 (Display Job log, if active
or on job queue).
- On the Job Log display, DSPJOB appears as the processing request. Press
F10 (Display detailed messages).
- On the Display All Messages display, press the Roll Down key to see messages
that were received before you pressed the System Request key.
- Sign off the workstation, specifying LOG(*LIST) on the SIGNOFF command.
When you use the Display Job Log (DSPJOBLOG) command,
you see the Job Log display. This display shows program names with special
symbols, as follows:
- >>
- The running command or the next command to be run. For example, if a program
was called, the call to the program is shown.
- >
- The command has completed processing.
- . .
- The command has not yet been processed.
- ?
- Reply message. This symbol marks both those messages needing a reply
and those that have been answered.
On the Job Log display, you can do the following:
- Press F10 to display detailed messages. This display shows the commands
or operations that were run within an HLL program or within a CL program or
procedure for which LOG is activated.
- Use the cursor movement keys to get to the end of the job log. To get
to the end of the job log quickly, press F18 (Bottom). After pressing F18,
you might need to roll down to see the command that is running.
- Use the cursor movement keys to get to the top of the job log. To get
to the top of the job log quickly, press F17 (Top).
You may use the DSPJOBLOG command to direct the job to a database
file instead of having it printed or displayed. There are two options available.
In the first option, you may specify a file and member name on the command.
In this option, the primary job log information is written to the database
file specified on the command. In the second option you may use the command
in conjunction with the information provided on the QMHCTLJL API which was
run previously. In this option, the job log is written to the file(s) specified
on the API call. With this option, both primary and secondary files can be
produced and message filtering can be performed as the messages are written
to the file. With both these options, when the DSPJOBLOG command completes,
the output will not be displayed nor will there be a spooled file available
for printing.