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

Capturing Job Execution Information


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
M Lee Klein

New User


Joined: 08 Feb 2022
Posts: 39
Location: USA

PostPosted: Thu Nov 09, 2023 4:11 am
Reply with quote

I've been tasked with capturing the run time for a specific list of jobs saved in a dataset on a regular basis.

I need to capture end time - start time for each job.

How would I go about doing that with jobs in EJES? Would it be best to insert a step in the jcl of each job to write details to a designated dataset?

Is Rexx or SAS the tool of choice? I'm the DBA so not sure what would be the best way to go about this.

MK
Back to top
View user's profile Send private message
Pedro

Global Moderator


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

PostPosted: Thu Nov 09, 2023 4:38 am
Reply with quote

I am not familiar with EJES.

My normal response would be to recommend using the rexx API for SDSF. You can get the job output and the first file should have start and stop times.

A separate option is to examine the system syslog and search for start and stop times of jobs.

Another option is to examine SMF records (probably type 30 records) for job start and stop times.
Back to top
View user's profile Send private message
Willy Jensen

Active Member


Joined: 01 Sep 2015
Posts: 712
Location: Denmark

PostPosted: Thu Nov 09, 2023 5:58 pm
Reply with quote

SMF records. If you have SAS then you probably also have MXG. Talk to your performance team, they should know and be able to give you an SAS/MXG extract job.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1742
Location: Tirupur, India

PostPosted: Thu Nov 16, 2023 2:44 am
Reply with quote

I am certain your site performance team can get this info with little effort from SMF.
I belong to performance team and we get similar requests all the time.

Alternatively if the jobs are in Control-M, then there is a PROC called CTMRNSC which is located in Control M PROCLIB. It can get job run times for specifc jobs.

Code:
//PROCLIB  JCLLIB ORDER=(IOA PROCLIB)   
//          INCLUDE MEMBER=<IOASETUP_MEMBER>               
//CTMRNSC  EXEC CTMRNSC                           
//SYSIN    DD  *                                   
INCLUDE JOBNAME SOMEJOB                           
REPSTART 2311101900                               
REPEND   2311151900                               
SORTBY   STARTTIME                                 
/*                                                 
//OUTPUT   DD SYSOUT=*                           
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 -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts Rexx log capturing CLIST & REXX 15
No new posts Capturing COBOL job and program names... All Other Mainframe Topics 2
No new posts Capturing logs from spool dd JCL & VSAM 6
No new posts Extract all the TWS scheduler informa... IBM Tools 1
No new posts Table Information - DB2 DB2 1
Search our Forums:

Back to Top