Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Checking Job Status from IOF

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
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    Post subject: Checking Job Status from IOF
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: 7908
Location: Bellevue, IA

PostPosted: Thu Aug 11, 2011 8:54 pm    Post subject:
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

Moderator Team Head


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

PostPosted: Thu Aug 11, 2011 8:56 pm    Post subject: Reply to: Checking Job Status from IOF
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    Post subject:
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    Post subject:
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    Post subject:
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: 1714
Location: UK

PostPosted: Fri Aug 12, 2011 12:05 am    Post subject:
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    Post subject:
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

Moderator Team Head


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

PostPosted: Fri Aug 12, 2011 12:16 am    Post subject: Reply to: Checking Job Status from IOF
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    Post subject:
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

Site Director


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

PostPosted: Fri Aug 12, 2011 1:48 am    Post subject:
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    Post subject:
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    Post subject:
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

Site Director


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

PostPosted: Fri Aug 12, 2011 3:41 am    Post subject:
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

DFSORT Moderator


Joined: 09 Mar 2011
Posts: 7226

PostPosted: Fri Aug 12, 2011 4:07 am    Post subject: Reply to: Checking Job Status from IOF
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: 1714
Location: UK

PostPosted: Fri Aug 12, 2011 10:01 am    Post subject:
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

Site Director


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

PostPosted: Fri Aug 12, 2011 10:18 am    Post subject:
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: 1714
Location: UK

PostPosted: Fri Aug 12, 2011 2:41 pm    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
This topic is locked: you cannot edit posts or make replies. Checking wether a string starts from ... sundaram.naveen CLIST & REXX 9 Thu Oct 06, 2016 11:56 am
No new posts Syncsort - NULL in Integer field chec... nartcr SYNCSORT 4 Thu Oct 06, 2016 6:47 am
No new posts Reasonable way of checking wildcards ... sergeyken CLIST & REXX 5 Wed Sep 07, 2016 8:43 pm
No new posts Checking for availability of a data set steve-myers JCL & VSAM 1 Wed Jul 13, 2016 5:17 pm
No new posts How to resolve IMS DB status code FM Priyanka Boga IMS DB/DC 3 Fri Jun 10, 2016 1:54 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us