View previous topic :: View next topic |
Author |
Message |
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Mon Nov 24, 2003 3:20 pm Post subject: Identify TCB and Elapsed Time from one or More batch Jobs ? |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Mon Nov 24, 2003 4:08 pm Post subject: |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Mon Nov 24, 2003 5:09 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Tue Nov 25, 2003 3:30 pm Post subject: |
|
|
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 |
|
|
SureshKumar Intermediate
Joined: 23 Jan 2003 Posts: 211 Topics: 21
|
Posted: Tue Nov 25, 2003 3:55 pm Post subject: |
|
|
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 |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
|
|