how to generate a Joblog when the job is only ended abnormally

315 pts.
Tags:
Job
JOBD
Joblog
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

Answer Wiki

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

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

Discuss This Question: 5  Replies

 
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
  • sudheer794
    Thank you very much Tom
    315 pointsBadges:
    report
  • sudheer794
    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 pointsBadges:
    report
  • WoodEngineer
    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.
    6,680 pointsBadges:
    report
  • Splat
    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.
    7,235 pointsBadges:
    report
  • TomLiotta
    ...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
    125,585 pointsBadges:
    report

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