joblog as400 printing

170 pts.
Tags:
AS/400 jobs
AS/400 printing
CLP
I'm running a job that could write many joblogs. What I want: if there are any kind of errors (even those answered with an Ignore) the joblog will print, else there is no joblog printed. I can get prints on a hard cancel of a clp but not if answered with an ignore.

Answer Wiki

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

There are several ways within the OS to specify the creation of or restrict a job log.

The message logging parameters on the job description and for an active job determine what kind of information will be collected:

Message logging: LOG
Level . . . . . . . . . . 4
Severity . . . . . . . .. 00
Text . . . . . . . . . . . . *NOLIST
Log CL program commands . . . . LOGCLPGM *NO

If the message logging parm is set to *NOLIST, a job log will be created only if the job ends abnormally.

The level and severity should also help restrict what error messages are logged.

Review the DSPJOBD and CHGJOBD commands for additional help. Hope this helps.

Discuss This Question: 3  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
  • Brenger
    yes, the suggested code is exactly what I have coded: if I select (I) ignore it does not print, If I (C) cancel it will print. I want to print on an (I) ignore also. I have also coded severity level 10 but it does the same think and seems like 00 ought to catch those.
    170 pointsBadges:
    report
  • Sloopy
    With the logging level set as previously shown (4 00 *NOLIST), a job end code of 20 or above will cause a joblog to be produced, and less than 20 will not produce a job log. So, if you are able to change the program(s) in this batch job, you could set a flag when an error condition occurs that would not end the job with enough severity. At the end of the processing, if the flag is set, send an escape message that will cause the job to end with severity 20 or above. Regards, Sloopy
    2,195 pointsBadges:
    report
  • LBurkett99
    Change *NOLIST to either *MSG or *SECLVL, and you will always get a job log in the outq.
    830 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