5 pts.
 How we will know the failure of a batch job?
Out 10 of 1 of the batch job is failed to process further, how we will identify a particulr job was got failed to process in AS/400.

Software/Hardware used:
ASKED: June 2, 2008  11:11 AM
UPDATED: April 23, 2010  7:26 AM

Answer Wiki:
Hi, Normally you should see an error message in the QSYSOPR message queue and the job should have created a joblog spooled file. Regards, Martin Gilbert. ============================================================= That depends on what you mean by "failed". If it means it encountered an error condition and ended abnormally from an *ESCAPE message, it will be very different from a job that 'handled' a problem and ended itself normally. Without being told what failures are involved, we can't guess how to recognize a failure. Please describe some example conditions and we can provide more detailed replies. Tom
Last Wiki Answer Submitted:  April 23, 2010  7:26 am  by  Gilly400   23,625 pts.
All Answer Wiki Contributors:  Gilly400   23,625 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

Hello,

You can always do a WRKJOB JOB(jobname). This will pull up several if the job has been run multiple times and you can look at the different dates to see the job log for each to find where the job failed.

Teresa

 4,165 pts.

 

hi,

WRKJOB gives the joblog only if the job is *ACTIVE. If the job is already ended with error, we can see the error message in QSYSOPR messages.

Regards
Reddy

 225 pts.

 

Hi,

WRKJOB also lets you see the spooled files for the job, so if the job has created a joblog spooled file and it’s still in the system then you can still see the joblog.

Regards,

Martin Gilbert.

 23,625 pts.