Running same JCL in infinite loop



JES, JES2, JCL utilities, IDCAMS, Compile & Run JCLs, PROCs etc...

Re: Running same JCL in infinite loop

Postby BillyBoyo » Sat Apr 28, 2012 5:08 pm

pushkal2gud wrote:Hi Billy, I am automating batch monitoring for my project. For this the job has to run in background all the time so that whenever a job is abended, it'll mail the concerned people. That is why I need to run it in infinite loop all the time. I hope this explains.

Hi NicC, everytime I am getting a different error message. I'll update the forum once I am done with my troubleshooting part. Thank :)


Missed this one. If you submit through the scheduler, you may be able to deal with it that way. However, as schedulers cost money, and need to be supported, often there is not a scheduler available in testing environments.

If you need to do this, I think a step at the end of each job which is only run when the job abends is going to be a better way to do it. You still might get floods of e-mails, I'm not sure what your "all the time" job would have done if it was already e-mailing.

This is a complex task to do in a fully-automatic way. So, do it an easy way, with the JCL.

I didn't even think that your job might only be running for a short time. Then you get the problem of the relative speed of "breakdown" to "initiation". Plus scrillions of jobs on the output queue.

Plus, it would be a huge waste to have something running all the time just to send some e-mails.

Glad you're out of it.

Let us know if you need more ideas, and if you can be specific about what you are trying to do.
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Running same JCL in infinite loop

Postby pushkal2gud » Sat Apr 28, 2012 5:13 pm

Ya steve i got you, this is the thing which I won't be doing again and neither i'll promote this thing to any other user. Thanks for the advice :)
pushkal2gud
 
Posts: 15
Joined: Fri Apr 20, 2012 7:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Running same JCL in infinite loop

Postby pushkal2gud » Sat Apr 28, 2012 5:17 pm

hi Billy,

I have made the JCL in such a way that the e-mail step is only run whenever a job abends. The rest of the time the job will complete normally. So the problem of e-mail flooding won't be there. I'll talk to our administrators regarding the scheduler thing, but that infinite thing is now a nightmare for me :)

Thanks
pushkal2gud
 
Posts: 15
Joined: Fri Apr 20, 2012 7:13 pm
Has thanked: 0 time
Been thanked: 0 time

Re: Running same JCL in infinite loop

Postby BillyBoyo » Sat Apr 28, 2012 5:31 pm

OK, glad it is over for you. Although you might want to be ready for some questions from puzzled people on Monday :-)

Learn from it. Think things through better. Seek advice if trying something you've not tried before.

If anyone suggests this sort of solution to you, you've earned the right to tell them very directly how bad an idea it is. You kept your head and managed to stop it before Cold Start, so you've got something going for you :-)
BillyBoyo
Global moderator
 
Posts: 3804
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 265 times

Re: Running same JCL in infinite loop

Postby prino » Sat Apr 28, 2012 9:35 pm

BillyBoyo wrote:... However, as schedulers cost money, and need to be supported, often there is not a scheduler available in testing environments.

There is a free one, Personal Job Scheduler
Robert AH Prins
robert.ah.prins @ the.17+Gb.Google thingy
User avatar
prino
 
Posts: 641
Joined: Wed Mar 11, 2009 12:22 am
Location: Vilnius, Lithuania
Has thanked: 3 times
Been thanked: 29 times

Re: Running same JCL in infinite loop

Postby jaggz » Sun Apr 29, 2012 11:00 am

Hi,

You can try out with JES2 time processing command to schedule incase if you don't own any schedulers.
User avatar
jaggz
 
Posts: 356
Joined: Fri Jul 23, 2010 8:51 pm
Has thanked: 8 times
Been thanked: 5 times

Re: Running same JCL in infinite loop

Postby jaggz » Sun Apr 29, 2012 11:05 am

To report on abend then again you have to have some tool to monitor your spool area or you can write a rexx code to monitor and use SMTP to send email to the concerned developer or user or a group.
User avatar
jaggz
 
Posts: 356
Joined: Fri Jul 23, 2010 8:51 pm
Has thanked: 8 times
Been thanked: 5 times

Previous

Return to JCL

 


  • Related topics
    Replies
    Views
    Last post