how to read the JESMSGLG



Unicenter CA-7 Job Management: CA's workload automation tool for managing, visualizing, automating, optimizing applications

how to read the JESMSGLG

Postby mrigank2728 » Mon Sep 22, 2008 2:27 pm

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
mrigank2728
 
Posts: 4
Joined: Mon Sep 22, 2008 2:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to read the JESMSGLG

 

Re: how to read the JESMSGLG

Postby dick scherrer » Mon Sep 22, 2008 9:33 pm

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to read the JESMSGLG

Postby mrigank2728 » Wed Sep 24, 2008 10:52 am

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
mrigank2728
 
Posts: 4
Joined: Mon Sep 22, 2008 2:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to read the JESMSGLG

Postby dick scherrer » Wed Sep 24, 2008 11:11 am

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.
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to read the JESMSGLG

Postby mrigank2728 » Wed Sep 24, 2008 4:46 pm

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
mrigank2728
 
Posts: 4
Joined: Mon Sep 22, 2008 2:15 pm
Has thanked: 0 time
Been thanked: 0 time

Re: how to read the JESMSGLG

Postby dick scherrer » Thu Sep 25, 2008 12:35 am

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?
Hope this helps,
d.sch.
User avatar
dick scherrer
Global moderator
 
Posts: 6304
Joined: Sat Jun 09, 2007 8:58 am
Has thanked: 3 times
Been thanked: 91 times

Re: how to read the JESMSGLG

Postby mrigank2728 » Thu Sep 25, 2008 10:13 am

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.
mrigank2728
 
Posts: 4
Joined: Mon Sep 22, 2008 2:15 pm
Has thanked: 0 time
Been thanked: 0 time


Return to CA-7

 


  • Related topics
    Replies
    Views
    Last post