Joblog Pending Status

40 pts.
Tags:
Joblog
Joblogs
V6R1
My OS is V6R1. I noticed that the jobs that have completed is in a status of 'JOBLOG PENDING'. Is there a system value of other setting that I need to change?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Hi,

The job log pending state has been available for many years. When a job’s job log attribute is *PND, no job log is produced. With the release of V5R4 enhancements have been made to both iSeries™ Navigator and the character-based interface so that you can now control how and under what circumstances the job log for a specific job will be produced.

This new feature is useful when you place the system into a restricted state. When the system goes into a restricted state, subsystems end and a potential of thousands of jobs can end at once. This in turn can create a large burden on the output resources. By preventing the production of these job logs, you can significantly reduce the impact on these resources.

Another example of when you can use this new feature is during a communications failure. Perhaps there are many similar jobs that produce the same job log error messages. You can set the job log to not produce a spooled file for all of the jobs. Then if there happens to be a communications failure, you can use the Work with Job Log (WRKJOBLOG) command to determine which logs to print. You can also use the Work with Job Logs (WRKJOBLOG) screen to manage job logs.

Jobs might be in a job log pending state due to the workings of the Power Down System (PWRDWNSYS) command. The iSeries Navigator user interface shows the status “Completed – Job log pending” for these jobs. This is a subset of character-based interface status of *OUTQ.

Taking advantage of these enhancements can help you to reduce the number of job logs produced and thereby reduce the contention for resources. This can result in improved system performance.

The job logs are available when needed, but no work is done to produce job logs for which there is no need.

The LOG parameter has three elements: the message (or logging) level, the message severity, and the level of message text. Each of these elements have specific values that when combined determine the amount and type of information sent to the job log by the job.

For example, the *NOLIST value of the Text element causes no job log to be produced if the job ends normally. (The job log does not go into pending.) If the job ends abnormally (if the job end code is 20 or higher), a job log is produced. The messages that appear in the job log contain both the message text and the message help.

You can control what produces the job log. This is done with the LOGOUTPUT parameter. When a job completes, one of three actions occur that affects how the job log is created. The following are values of the LOGOUTPUT parameter:

The job log server produces the job log: (*JOBLOGSVR)
The job itself produces the job log: If the job cannot produce its own job log, the job log will be produced by a job log server. (*JOBEND)
The job log is not produced: The job log remains in pending until it is removed. (*PND)
Note: These values do not affect job logs that are produced when the message queue is full and the job message queue full action specifies *PRTWRAP. Messages in the job message queue are written to a spooled file, from which the job log can be printed, unless the Control Job Log Output (QMHCTLJL) API was used in the job to specify that the messages in the job log are to be written to a database file.
What controls the job log parameters?
When a job starts, it gets its LOGOUTPUT value from the job description. If the job description specifies *SYSVAL (the default for CRTJOBD), the job uses the job log output value that is specified in the Job log output (QLOGOUTPUT) system value. (While the shipped value for the Job log output (QLOGOUTPUT) system value is *JOBEND, the recommended value is *JOBLOGSVR.) After the job has established its LOGOUTPUT job attribute, any changes to the job description or system value do not affect the active job. Changes to the system value or to the job description take effect for jobs entering the system after the change.

You can use the Change Job (CHGJOB) command or API (QWTCHGJB) to change the LOGOUTPUT job attribute after it has already been set in the job. Changes to the job take effect immediately.

Regardless of the method that you choose, the options for handling job logs are the same. You can set the job to not produce a job log (*PND), have the job produce the job log (*JOBEND), or have the job log server produce the job log (*JOBLOGSVR).

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following