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
 

 

Reg: Capturing job submission output

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Fri Oct 08, 2010 6:55 pm    Post subject: Reg: Capturing job submission output
Reply with quote

We are working on a tool in REXX. We need to capture the job output code (MAXCC - message displayed on the screen) in our REXX EXEC. The difficulty we are facing here is that the job is being submitted in a different MSGCLASS (not getting the job outputs in our spool) , so the only output we get is the terminal display , which displays only the MAXCC information.

We need to capture this screen display in our EXEC. Can some one advice on this?
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Oct 08, 2010 7:08 pm    Post subject: Reply to: Reg: Capturing job submission output
Reply with quote

if You want to capture the notify message... NO it cannot be done

it is not clear how the MSGCLASS is involved in all that
if You are in a shared spool environment should not be an issue
if the job is nje routed then evaluate the possibility of having the MSHCLASS routed back to the submitting node

but... until You tell more about the complete environment very little advice can be given
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Fri Oct 08, 2010 8:33 pm    Post subject: Reply to: Reg: Capturing job submission output
Reply with quote

We need to call one Rexx exec (shared one), which will submit 3 jobs consequently. we cannot change the JCL. we need to wait until the 3 jobs run and then we need to check the DB2 table entries for verifying whether the jobs run successfully or not (since if 3 jobs run successfully, the DB2 table entries will be changed to another values).

So our need is to wait for 3 jobs to be run completely. 3 jobs can take 1 min in some times, or 10 or more min in some other times. So we thought to capture the screen display messages to stop waiting and to proceed further to check DB2 table entries. Is any other way to proceed?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Oct 08, 2010 8:37 pm    Post subject: Reply to: Reg: Capturing job submission output
Reply with quote

yes, as already said too many times use a scheduler
to have a screen hanging waiting for some batch to complete is as already said too many times a stupid approach
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Fri Oct 08, 2010 8:45 pm    Post subject:
Reply with quote

But we don't know the time delay in executing the 3 jobs.

Please give me some example for using the scheduler.
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 Oct 08, 2010 8:46 pm    Post subject:
Reply with quote

Hello,

Quote:
to have a screen hanging waiting for some batch to complete is as already said too many times a stupid approach

And is not acceptable on well managed systems. . .
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7908
Location: Bellevue, IA

PostPosted: Fri Oct 08, 2010 8:47 pm    Post subject:
Reply with quote

CA-7, for example, allows you to specify that job 2 cannot start until job 1 finishes. If job 1 takes 1 minute, or 30 minutes, doesn't matter -- CA-7 won't start job 2 until job 1 is complete.
Back to top
View user's profile Send private message
Akatsukami

Global Moderator


Joined: 03 Oct 2009
Posts: 1738
Location: Bloomington, IL

PostPosted: Fri Oct 08, 2010 8:49 pm    Post subject:
Reply with quote

ajeshrn wrote:
Please give me some example for using the scheduler.

Please give us the type of scheduling software (e.g., Control-M, CA-7, etc.) in use in your shop.
Back to top
View user's profile Send private message
ajeshrn

New User


Joined: 25 Mar 2009
Posts: 78
Location: India

PostPosted: Fri Oct 08, 2010 8:52 pm    Post subject:
Reply with quote

The Rexx will execute the 3 jobs. Our requirement is that the REXX will have to wait until all 3 jobs run completely. Please advice me.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Fri Oct 08, 2010 8:57 pm    Post subject: Reply to: Reg: Capturing job submission output
Reply with quote

Quote:
The Rexx will execute the 3 jobs. Our requirement is that the REXX will have to wait until all 3 jobs run completely. Please advice me.


did You read our previous replies, looks like not
the chances of getting replies on issues where the general consensus is ...
do not do it are negligible

the unwillingness to change the process ( 3 jobs that should stay as they are ) makes difficult to advice on alternatives

topic is going to be locked shortly and moved because of
http://ibmmainframes.com/viewtopic.php?t=20820&highlight=
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 Oct 08, 2010 9:27 pm    Post subject:
Reply with quote

Hello,

Quote:
The Rexx will execute the 3 jobs. Our requirement is that the REXX will have to wait until all 3 jobs run completely. Please advice me.
My advice would be to scrap this poorly conceived "plan". This is not a requirement. This is a solution that someone has chosen to try to meet the actual requirement (that the 3 jobs run in sequence) that should not be used.

The scheduling software will do exactly what is needed. Talk with your scheduling people about how to define these 3 jobs to the schedule so they execute as needed.
Back to top
View user's profile Send private message
Pedro

Senior Member


Joined: 01 Sep 2006
Posts: 2019
Location: Silicon Valley

PostPosted: Sat Oct 09, 2010 9:52 pm    Post subject: Reply to: Reg: Capturing job submission output
Reply with quote

Quote:
difficulty we are facing here is that the job is being submitted in a different MSGCLASS (not getting the job outputs in our spool)

Change your message class. Or perhaps add an OUTPUT card that routes that piece of output to your userid.

I question why you would want to do some superhuman programming when a simple JCL change will fix the 'problem'.
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Problem in writing Output file vickey_dw COBOL Programming 5 Mon Nov 14, 2016 11:14 pm
No new posts Syncsort - Hard coded Value in output PORYES SYNCSORT 1 Thu Nov 03, 2016 9:23 am
No new posts output data in CSV Format janmejay COBOL Programming 8 Sat Oct 15, 2016 2:20 pm
This topic is locked: you cannot edit posts or make replies. output data in CSV Format janmejay DFSORT/ICETOOL 3 Sat Oct 15, 2016 2:16 pm
No new posts ICETOOL/SYNCSORT - SYSPRINT output nartcr DFSORT/ICETOOL 17 Wed Oct 05, 2016 10:46 pm


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