Page 1 of 1

how to read the JESMSGLG

PostPosted: Mon Sep 22, 2008 2:27 pm
by mrigank2728
Hi,

i am about to do a project in which i need to read the JESMSGLG which is being created during the execution, which contains the information about the steps executed within the job.....
Is there any specific name of that dataset.
please assist me how can i read that log.

Regards,
Mrigank

Re: how to read the JESMSGLG

PostPosted: Mon Sep 22, 2008 9:33 pm
by dick scherrer
Hello Mrigank and welcome to the forums,

If you use sdsf, you can copy the content of the jesmsglg to a dataset using xdc.

I'd suggest asking one of your system support people about xdc if you are not familiar with xdc.

Once the log has been copied into a dataset, you can process against it.

Re: how to read the JESMSGLG

PostPosted: Wed Sep 24, 2008 10:52 am
by mrigank2728
Hi Dick,

i could have used XDC, but i have a different requirement;

what i want is; i need to restart a job by from same job itself only if it abends...
i would trigger a program which could submit the job again without
any human intervention by reading the log of the job what kind of abend it is..
so mainly i am trying to implement automising sort of thing.

Regards,
Mrigank

Re: how to read the JESMSGLG

PostPosted: Wed Sep 24, 2008 11:11 am
by dick scherrer
Hello,

i need to restart a job by from same job itself only if it abends...
After someone has performed some diagnosis to determine how to correct the abend. And possibly after restore/recovery actions are taken. And possibly after any restart situations are resolved.

i would trigger a program which could submit the job again without
any human intervention by reading the log of the job what kind of abend it is..
What would cause this program to be triggered?

I believe the entire requirement needs to be completely thought through before technical implementation would begin.

At this point i am not clear on exactly how your process would operate. If you explain in some more detail, we may be able to offere suggestions.

Re: how to read the JESMSGLG

PostPosted: Wed Sep 24, 2008 4:46 pm
by mrigank2728
Hi,

see what i am going to do;

firstly i submitted a job which has 10 steps; the job abends at 4th step
now i what i m going to do like my 10th step executes a program and this step has a cond parameter
ONLY so if the abend occurs then only this step is going to execute.

and we know that all the step return codes are there in the jesmsglg itsels even also on which step the job has abended and the abend code. now i want to read this msg log through my program which is in the 10th step of the jobs as the 10 step is running that means job is still in execution. my program will read this log, find out the abend code from the log, and restart the same job from the desired step.

Regards,
Mrigank

Re: how to read the JESMSGLG

PostPosted: Thu Sep 25, 2008 12:35 am
by dick scherrer
Hello,

my program will read this log, find out the abend code from the log, and restart the same job from the desired step.
Sorry, but i believe not. . . Most abended jobs (nearly all) cannot be restarted this way. Before they can be restarted other work must be done. Whatever caused the abend needs to be resolved before the job is resubmitted.

If a job abends with an 0c7 or the input tape dataset is damaged or if the database system is down or any of hundreds of other things has gone wrong, why would you restart the job until the problem has been corrected?

Re: how to read the JESMSGLG

PostPosted: Thu Sep 25, 2008 10:13 am
by mrigank2728
Hi,

that i'll manage through the program for some small issue..
just i need to know how to read the dataset(jesmsglg) through a program
without XDC or without copying.
i just wanna read the original one.