MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Capturing Job information using REXX

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL)
View previous topic :: View next topic  
Author Message
somuk
Beginner


Joined: 04 Feb 2003
Posts: 113
Topics: 37

PostPosted: Mon Oct 31, 2011 10:25 am    Post subject: Capturing Job information using REXX Reply with quote

Hi,

We are in the need of capturing Job information using REXX script for Jobs. Job information Such as Job Name, Job ID, Start time, End Time, Return Code, System abend code, User abend code, Abend Message (if available) into a Rexx program for each job while the job is running. We are OK to edit these Jobs and add additional step to incorporate theses features. Please provide any sample code or pointers to achieve this.
_________________
Regds,
Somu
Back to top
View user's profile Send private message Yahoo Messenger
papadi
Supermod


Joined: 20 Oct 2009
Posts: 594
Topics: 1

PostPosted: Mon Oct 31, 2011 11:46 am    Post subject: Reply with quote

This is not a JCL question. . . Rexx is not JCL.

If you intend to use the "job" data in the spool, suggest you ask your technical support if your organization already has some kind of interface to SDSF. Most sites already have "something" and this can often be modified to accomodate an additional requirement.

The data you want is more readily available in the SMF data. Suggest you speak with the technical support people and see if an extract of what you want is already being done and you could use the data created by this. This would be for some prior time, not while the job is running.

Possibly the best source for what you want is the scheduling software used to control the operation of your system. Most systems these days use scheduling software, so talking with your Operations/Scheduling people would be a good starting place.
_________________
All the best,

di
Back to top
View user's profile Send private message
semigeezer
Supermod


Joined: 03 Jan 2003
Posts: 1014
Topics: 13
Location: Atlantis

PostPosted: Mon Oct 31, 2011 12:07 pm    Post subject: Reply with quote

This information is available from control blocks which are still present until the job ends. There are some samples either on this board or others but I haven't done the search. The common use for this is exactly what you are asking for; adding another step that tallies up the job results.

I agree with di though that using SMF records is a much better (efficient, documented, low maintenance) option if you can use it. SMF records can be collected with a scheduled batch job and, in most cases, can be post-processed by Rexx or any other language. Processing SMF records with Rexx is not trivial (actually it is sort of messy) but it isn't uncommon either.
_________________
New members are encouraged to read the How To Ask Questions The Smart Way FAQ at http://www.catb.org/~esr/faqs/smart-questions.html.
Back to top
View user's profile Send private message Visit poster's website
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Tue Nov 01, 2011 2:42 am    Post subject: Reply with quote

Perhaps if you explain why, then a better solution can be offered
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
somuk
Beginner


Joined: 04 Feb 2003
Posts: 113
Topics: 37

PostPosted: Wed Nov 02, 2011 7:39 am    Post subject: Reply with quote

Thanks semigeezer and expat.
Infact, we are trying to develop an web/java interface for mainframe job monitoring. I have posted another query in this forum http://www.mvsforums.com/helpboards/viewtopic.php?t=11892 for the same.

Semigeezer,
We tried to see if SDSF can access thru Rexx Address SDSF command. We are able to get Job details from the Spool. If you could please share some code snippets on the same it would helpful.
_________________
Regds,
Somu
Back to top
View user's profile Send private message Yahoo Messenger
expat
Intermediate


Joined: 01 Mar 2007
Posts: 475
Topics: 9
Location: Welsh Wales

PostPosted: Thu Nov 03, 2011 2:48 am    Post subject: Reply with quote

The redbooks section on the IBM website has a great one for using REXX and SDSF together
_________________
If it's true that we are here to help others,
then what exactly are the others here for ?
Back to top
View user's profile Send private message
asr2
Beginner


Joined: 25 Jun 2011
Posts: 26
Topics: 4
Location: Germany

PostPosted: Sat Nov 12, 2011 3:05 am    Post subject: Reply with quote

To avoid the need to use the rather ackward REXX-SDSF logic and in situations where no SDSF is available, Soforte GmbH offers a REXX JES solution (and also various other REXX extensions (XML, VSAM, etc.)):

http://www.soforte.com/en/produkte/rexx.html

Regards
Tony
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Job Control Language(JCL) All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group