IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Checking Job Status from IOF


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Thu Aug 11, 2011 8:49 pm
Reply with quote

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
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 8696
Location: Dubuque, Iowa, USA

PostPosted: Thu Aug 11, 2011 8:54 pm
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Thu Aug 11, 2011 8:56 pm
Reply with quote

You might want to start with the IOF User's Guide, probably around Chapter 18. IOF REXX and Clist Interface.
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Thu Aug 11, 2011 9:33 pm
Reply with quote

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
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Aug 11, 2011 11:07 pm
Reply with quote

Are you ready to tie up your terminal for hours waiting for the job to finish?
Back to top
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Thu Aug 11, 2011 11:33 pm
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Aug 12, 2011 12:05 am
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 12, 2011 12:07 am
Reply with quote

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
View user's profile Send private message
superk

Global Moderator


Joined: 26 Apr 2004
Posts: 4652
Location: Raleigh, NC, USA

PostPosted: Fri Aug 12, 2011 12:16 am
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 12, 2011 12:22 am
Reply with quote

Right Kevin. I want the STATUS of the job only.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 12, 2011 1:48 am
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 12, 2011 2:00 am
Reply with quote

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
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Fri Aug 12, 2011 2:02 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 12, 2011 3:41 am
Reply with quote

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
View user's profile Send private message
Bill Woodger

Moderator Emeritus


Joined: 09 Mar 2011
Posts: 7309
Location: Inside the Matrix

PostPosted: Fri Aug 12, 2011 4:07 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Aug 12, 2011 10:01 am
Reply with quote

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
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Fri Aug 12, 2011 10:18 am
Reply with quote

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
View user's profile Send private message
Nic Clouston

Global Moderator


Joined: 10 May 2007
Posts: 2455
Location: Hampshire, UK

PostPosted: Fri Aug 12, 2011 2:41 pm
Reply with quote

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
View user's profile Send private message
Priyanka Pyne

New User


Joined: 09 Feb 2008
Posts: 95
Location: India

PostPosted: Fri Aug 12, 2011 8:43 pm
Reply with quote

Thanks Dick & Bill. I think email indeed a good idea.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Job completes in JES, but the status ... IBM Tools 1
No new posts File Status 04 COBOL Programming 3
No new posts RABBIT HOLE NEEDED - "Live"... All Other Mainframe Topics 0
No new posts DL/I status code AK for GU call using... IMS DB/DC 1
No new posts REXX - Dataset checking in a do forev... CLIST & REXX 6
Search our Forums:

Back to Top