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 

Identify TCB and Elapsed Time from one or More batch Jobs ?

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination
View previous topic :: View next topic  
Author Message
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Nov 24, 2003 3:20 pm    Post subject: Identify TCB and Elapsed Time from one or More batch Jobs ? Reply with quote

HI,
I would like to know how to Identify the Job run times from SDSF, so that it can be made into an automated process which can send out a report each moring about the performance of jobs owned by our team. The following information is written to the SDSF messages -
RC EXCP CONN TCB SRB CLOCK
01 29082 9012 .07 .00 .4

How can the information be captured by a batch job ? We have CA-7 - is this information available there ? Our batch jobs run with a common 2 byte HLQ - RY*
Your Inputs are appreciated, Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Mon Nov 24, 2003 4:08 pm    Post subject: Reply with quote

Suresh kumar,

Are you just interested in knowing how long a job ran? Let us take an example

Job a started at 4:00 pm and finished at 4:43 pm. Now the time taken for the completion of the job is 43 mins. This is a simple way of calculating the run times.

This can be achieved very easily with pulling the data from CA-7 using the batch interface and parsing the output via sort or rexx to get the desired data.

If you are interested in the minute details then check the following topics which discuss about calculation of cpu and elapsed times

http://www.mvsforums.com/helpboards/viewtopic.php?t=1203
http://www.mvsforums.com/helpboards/viewtopic.php?t=207

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Mon Nov 24, 2003 5:09 pm    Post subject: Reply with quote

Thank you
I need the CPU and Elapsed time. Is there anyway other than by Rexx ? I will check links first. Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Tue Nov 25, 2003 3:30 pm    Post subject: Reply with quote

Suresh kumar,

The output listing of a job varies from shop to shop depending on the SMF exits. You can use a batch SDSF to get the output of a job into flat file. Once you get the output in a file , you can use a program, utility or rexx to parse the data and get the desired results.The following JCL is used for running SDSF in batch

Code:

//STEP0100 EXEC PGM=IEFBR14                         
//FILE01   DD DSN=TID.SDSF.PRINT,               
//            DISP=(NEW,CATLG,DELETE),               
//            UNIT=SYSDA,                           
//            SPACE=(CYL,(1,1),RLSE),               
//            DCB=(RECFM=FBA,LRECL=133,BLKSIZE=0)   
//*                                                 
//STEP0200 EXEC PGM=SDSF                             
//SYSOUT   DD SYSOUT=*                               
//SYSPRINT DD SYSOUT=*                               
//ISFOUT   DD SYSOUT=*                               
//ISFIN    DD *                                     
  PRE RY*                                       
  H                                                   
  FIND 'JOBNAME' LAST                               
  ++S                                                 
  PRINT ODSN 'TID.SDSF.PRINT'                     
  PRINT                                               
  PRINT CLOSE                                         
  END                                                 
  EXIT                                               
//*


Now the output of the Job is printed in the file TID.SDSF.PRINT. you can process this dataset with sort and extract the required info.

Hope this helps....

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
SureshKumar
Intermediate


Joined: 23 Jan 2003
Posts: 211
Topics: 21

PostPosted: Tue Nov 25, 2003 3:55 pm    Post subject: Reply with quote

Thank you, Is it possible to drill down to JESMSGLG on the SDSF output - just that I can capture and parse only the relavent information. Thanks
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12376
Topics: 75
Location: San Jose

PostPosted: Wed Nov 26, 2003 5:50 am    Post subject: Reply with quote

suresh kumar,

You can change the MSGLEVEL parameter in your JCL to print appropriate listing.In SDSF PRINT you can use the starting line number and ending line number.check this link for SDSF manual which explains printing selected data

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISF2A06/4.46?DT=19960716204924

Hope this helps...

cheers

kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Problem Determination 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