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

TWS jcl to retrieve job history


IBM Mainframe Forums -> IBM Tools
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
vd120

New User


Joined: 06 Nov 2010
Posts: 24
Location: NYC

PostPosted: Tue Mar 27, 2012 2:22 am
Reply with quote

Hello,

does anyone knows if there is jcl I can run to retrieve report out of TWS about job history (I need job name and last time it ran). I have several hundreds of jobs and go to JH one by one not an option.

Thank you.
Back to top
View user's profile Send private message
PeterHolland

Global Moderator


Joined: 27 Oct 2009
Posts: 2481
Location: Netherlands, Amstelveen

PostPosted: Tue Mar 27, 2012 10:42 am
Reply with quote

The TWS support people should know.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Mar 27, 2012 5:05 pm
Reply with quote

Is the job still in the current plan?

Do you use the history function at your site?

Presumably you run the EQQDPRPT option with the EQQBATCH program as part of your daily planning. Check the SYSPRINT file from this step for details of all completed applications.
Back to top
View user's profile Send private message
vd120

New User


Joined: 06 Nov 2010
Posts: 24
Location: NYC

PostPosted: Tue Mar 27, 2012 6:01 pm
Reply with quote

I need report on all jobs we have in the TWS (regarding it running or not).
I want to clean up libraries (which was never done for last 20 years).

TWS support can not help me on this, a couple years ago IBM consultant setup job for them and no one touch it since.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Mar 27, 2012 6:37 pm
Reply with quote

Your requirement is a little vague. You need to be more specific about exactly what you are tring to achieve. For a start, what libraries are you referring to? The TWS AD database, or the JCL / scrptlib libraries where your jobs reside?

Running the EQQYCAIN program with the following parameter will unload the entire AD database. You can then use this to work out which jobs are scheduled to run, although there is no record of the "last run" here.
ACTION=OPTIONS,BL=Y,BLPRT=Y,LTP=N;
ACTION=LIST,RESOURCE=ADCOM,STATUS=*,ADID=*.
Back to top
View user's profile Send private message
vd120

New User


Joined: 06 Nov 2010
Posts: 24
Location: NYC

PostPosted: Tue Mar 27, 2012 6:57 pm
Reply with quote

Thank you David, this sounds as starting point for me.

I think I need to refer to our JCL library, as this is one where all jobs got searched and maintained from, but I can work from database and run compare after. And I really need "last run" this will allow me to determine "dead wood". When I go to TWS job history it displays all occurences of the job executions with timestamp, so it is somewhere in the scheduler.
Back to top
View user's profile Send private message
David Robinson

Active User


Joined: 21 Dec 2011
Posts: 199
Location: UK

PostPosted: Tue Mar 27, 2012 7:03 pm
Reply with quote

I guess that's the history function then. Sorry, we don't use that so I'm not familiar with it. I know the history data resides in a DB2 table, so you could potentially bypass TWS and just run some SQL against it?
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 -> IBM Tools

 


Similar Topics
Topic Forum Replies
No new posts Looking for a little history of ISPF ... TSO/ISPF 5
No new posts Using Java/C/C++ to retrieve dataset ... Java & MQSeries 6
No new posts Change history of vsam file. JCL & VSAM 3
No new posts Retrieve IMS SubSystem Name IMS DB/DC 2
No new posts retrieve volume records from decollec... DFSORT/ICETOOL 4
Search our Forums:

Back to Top