View previous topic :: View next topic |
Author |
Message |
somuk Beginner
Joined: 04 Feb 2003 Posts: 113 Topics: 37
|
Posted: Mon Oct 31, 2011 10:25 am Post subject: Capturing Job information using REXX |
|
|
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 |
|
|
papadi Supermod
Joined: 20 Oct 2009 Posts: 594 Topics: 1
|
Posted: Mon Oct 31, 2011 11:46 am Post subject: |
|
|
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 |
|
|
semigeezer Supermod
Joined: 03 Jan 2003 Posts: 1014 Topics: 13 Location: Atlantis
|
Posted: Mon Oct 31, 2011 12:07 pm Post subject: |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Tue Nov 01, 2011 2:42 am Post subject: |
|
|
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 |
|
|
somuk Beginner
Joined: 04 Feb 2003 Posts: 113 Topics: 37
|
Posted: Wed Nov 02, 2011 7:39 am Post subject: |
|
|
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 |
|
|
expat Intermediate
Joined: 01 Mar 2007 Posts: 475 Topics: 9 Location: Welsh Wales
|
Posted: Thu Nov 03, 2011 2:48 am Post subject: |
|
|
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 |
|
|
asr2 Beginner
Joined: 25 Jun 2011 Posts: 26 Topics: 4 Location: Germany
|
Posted: Sat Nov 12, 2011 3:05 am Post subject: |
|
|
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 |
|
|
|
|