315 pts.
 how to generate a Joblog when the job is only ended abnormally
Hi,

I have a JOBD and it is creating joblog for jobs now. I don't need joblogs everytime but I need the joblog when it ends with any error.

How to achieve this issue.

Thanks in advance



Software/Hardware used:
ASKED: May 5, 2010  7:08 AM
UPDATED: May 17, 2010  9:54 PM

Answer Wiki:
The job will run according to the environment described in its job description. The job description object will have a LOG() attribute. Set LOG(4 0 *NOLIST) on the job description for the logging level that is most useful for abnormal termination. A job end code less than 20 will suppress spooling of the joblog. Tom
Last Wiki Answer Submitted:  May 5, 2010  7:59 am  by  TomLiotta   108,280 pts.
All Answer Wiki Contributors:  TomLiotta   108,280 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Thank you very much Tom

 315 pts.

 

Hi Tom,

But now I have a concern. the same job description is also being used by other jobs. but I want to stop the joblog for only one particular job. Kindly assist on this.

 315 pts.

 

Check out the Message Logging parms on the SBMJOB command. The default for these three values is *JOBD. You can change them for the submitted job without effecting the job description. Just use the same values Tom recommended.

 5,525 pts.

 

Another option would be to duplicate the current job description for that procedure (and any like it) and make the necessary changes to the logging levels.

 5,670 pts.

 

…the same job description is also being used by other jobs. but I want to stop the joblog for only one particular job.

Create a second job description for the single user to use. Or create a routing program that changes the LOG() level for the single user. Or use the QIBM_QWT_JOBNOTIFY exit point to detect that user’s jobs and to make the change to that job’s LOG() level.

I’m sure there are many ways to get it done. We don’t know what you are allowed to change on your system.

Tom

 108,280 pts.