Search code examples
ibm-midrangejobs

How to clear Job logs on IBM mid range machine


We have jobs running on our AS/400, but then randomly our session or job just ends. We have determine that a job reaches the maxim job messages and then end the Job.

Is there a way to clear the job logs, while the the job is running?


Solution

  • Set the system value QJOBMSGQFL to *WRAP so that the messages will wrap around to the beginning when it fills.

    CHGSYSVAL SYSVAL(QJOBMSGQFL) VALUE(*WRAP)
    

    Alternatively you can change it on a specific job description. For example:

    CHGJOBD JOBD(QDFTJOBD) JOBMSGQFL(*WRAP)
    

    Jobs system values: When maximum size is reached