View previous topic :: View next topic
|
Author |
Message |
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Hi,
I have a specific requirement where I need to check if a job has been successfully completed in IOF through REXX.
Can anyone tell me how can I do that? |
|
Back to top |
|
|
Robert Sample
Global Moderator
Joined: 06 Jun 2008 Posts: 8696 Location: Dubuque, Iowa, USA
|
|
|
|
What have you tried already and what do you need help with? Googling iof rexx returns 10,300 hits and some of them look very relevant to your equest. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
You might want to start with the IOF User's Guide, probably around Chapter 18. IOF REXX and Clist Interface. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thanks Robert & Kevin for you valuable suggestion. I do have done Googling and gone through the pdf as well but I didn't get what I actually wanted.
May be my earlier post was not very clear. Let me put it another way.
I want to read the IOF(where my jobs ar running) with a Rexx program and when the jobs are completed I need to dispaly a panel. The panel should not be showed up until the jobs complete. So I think I need to set up some dependency or need to put some logic in my Rexx code which will check the job status and will display the panel when the execution is completed. |
|
Back to top |
|
|
Craq Giegerich
Senior Member
Joined: 19 May 2007 Posts: 1512 Location: Virginia, USA
|
|
|
|
Are you ready to tie up your terminal for hours waiting for the job to finish? |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
No Carq, I just want to diplay the panel only after the job completed. To do that do I need to tie up my terminal? Or is there any other way? |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
To display a panel you need to run the rexx program in foreground this means that you cannot do anything with your TSO session until the Rexx program completes. How long do you reckon it will run for? |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
It could run for 5-10 mins maximum. Again that will depend on the input file size and it could take less time also. So one can not pre determine the time. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I don't really understand what you want to do, but as long as you do, that's OK. Is there something that you expect IOF to give back to you that you can't get from the basic TSO batch processing commands
SUBMIT, STATUS, and OUTPUT? |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Right Kevin. I want the STATUS of the job only. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
How many users might submit jobs that need to be notified when the job completes? Each one will tie up their terminal until the job ends and the screen is displayed.
Also consider what happens when there is something going on with the system and the job does not even start for an hour or more. . . It maybe should not happen, but it does.
What business requirement might this support?
As this is one of the worst possible things-to-do, suggest you not do this. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Actually,I am creating one tool using Rexx which will compare two mainframe files. The input file names will be given through Panel. Ans the Rexx will submit one job which will be taking care of all this comparison. And once this is done it will wright the result into a dataset.
So here, there will be only one job which I need to take care.
My issue is before completeing the job the next panel is getting showed up with the resultant o/p dataset name but the job is still running. So I need to put some logic which will take care of this. |
|
Back to top |
|
|
dbzTHEdinosauer
Global Moderator
Joined: 20 Oct 2006 Posts: 6966 Location: porcelain throne
|
|
|
|
Status or Completion Code.
completion code is returned by NOTIFY parm in job card.
If Status of the job is the question,
WTF are they going to do when they find out that it is 19th on the queue.
Just saw your next post.
so ignore my response above,
and meditate on another tool yahooooooo |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
Quote: |
So I need to put some logic which will take care of this. |
Most here disagree. . .
Rather than forcing this bad into use, you need to do what is needed to get the nfo to whoever neeeds it.
One was would be to have the batch job send an e-mail to those who need to know the result of the batch job. If you use an e-mail, the result can be sent to some user(s) as well as yourself (if you want to be aware of these).
Repeat
There is no good reason to have the terminal sit and wait for it. |
|
Back to top |
|
|
Bill Woodger
Moderator Emeritus
Joined: 09 Mar 2011 Posts: 7309 Location: Inside the Matrix
|
|
|
|
I was going to suggest a NOTIFY, but Dick's e-mail idea is better. With a notify, the user will tie up his terminal, and himself, by sitting there hitting Enter until the NOTIFY arrives.
With an e-mail, no excuse not to get on with something else.
This also highligts another problem with the original idea. If the user is away from their terminal for two hours, it doesn't matter how you do it from your "Tool", the user won't know until he hits a transmit key of some sort.
Do the e-mail, it'll work without tying anything up. |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
You can still use the notify - you can carry on working at your terminal - when the notify comes through it will disply its message next time you hit an interrupt key (enter, pfx or whatever). Saves checking your email every so often and saves system resources (ok, not much) and keeps things simple. |
|
Back to top |
|
|
dick scherrer
Moderator Emeritus
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
|
|
|
|
Hello,
NOTIFY will tell one person the job ended. It will not provide the info that would have been displayed on the user screen (unless i misunderstand what is wanted).
E-mail also gives the opportunity to have some footprints that are sent to a common address in addition to the submitter. . .
fwiw |
|
Back to top |
|
|
Nic Clouston
Global Moderator
Joined: 10 May 2007 Posts: 2455 Location: Hampshire, UK
|
|
|
|
As far as I can tell, the person who subbed the first job is to sub the second.
Anyway, another alternative is to have the first job submit the second job. |
|
Back to top |
|
|
Priyanka Pyne
New User
Joined: 09 Feb 2008 Posts: 95 Location: India
|
|
|
|
Thanks Dick & Bill. I think email indeed a good idea. |
|
Back to top |
|
|
|