How can I make the job generate just the higher severity messages?

5 pts.
Tags:
CL Program
IBM iSeries
iSeries job
iSeries job logs
Everytime a batch job ended abnormally, it generates thousands of pages of job logs.  The jobd is set to logclpgm *no,  msg logging 4/0/*nolist.

The job log has all the details of the record read between api programs.  How can I make the job generate just the higher severity messages?

 



Software/Hardware used:
iSeries / CL program

Answer Wiki

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

You can’t make it “generate” only higher severity messages, but you can reduce the volume of messages that get placed in the ‘joblog’.

First, instead of LOGLVL(4 00 *NOLIST), try LOGLVL(3 00 *NOLIST) or even (2) or (1). Level (4) says to log every kind of message possible. Set a logging level that you want.

And instead of LOGLVL(4 00 *NOLIST), try LOGLVL(4 30 *NOLIST) or a higher number. Severity (00) says to log every severity from 00 up to 99. A higher number says to log only messages of that severity or higher.

However, the best choice is not to have the messages at all unless they are <i>intended</i> to be logged. The messages should log information that needs to be known after the job completes. If it isn’t needed in a joblog, it shouldn’t even exist. It probably shouldn’t have been sent.

If these are coming out of API calls, then the programming should be changed to avoid having them from being sent. API error code parameters generally should be used instead of using messages.

Tom

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