View previous topic :: View next topic
|
Author |
Message |
shihua
New User
Joined: 27 May 2005 Posts: 6 Location: Shanghai, China
|
|
|
|
Hi,
Is anybody know how to catch the batch job start time and end time in jcl? |
|
Back to top |
|
|
grepusr3
New User
Joined: 10 May 2005 Posts: 29
|
|
|
|
For the information you need, you will have to work with your friendly Systems Programmer. Two possible ways:
1) Implement SMF Job/Step termination exit IEFACTRT - this will at Job runtime give you Batch Job/Step termination statistics including CPU, TCB, SRB time etc..
2) Extract SMF records and produce required reports (you will have to work with SAS/MXG - lot of work to do this).
-Pelad |
|
Back to top |
|
|
radhakrishnan82
Active User
Joined: 31 Mar 2005 Posts: 435 Location: chennai, India
|
|
|
|
To catch the scheduled batch job start time and end time,you can use either CA-7 or Control-D option(online monitoring) |
|
Back to top |
|
|
shannu
New User
Joined: 01 Jun 2005 Posts: 17 Location: bangalore
|
|
|
|
You can see in sysmessages step in spool.
Does it answered your question?
regatds,
shannu. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
i agree with shanu,
you directly see in spool. JES system generated message contains the start time of the job and end time of the job.
Output will have this header
Code: |
JES2 JOB LOG -- SYSTEM <TSO COMPLEX >
|
Where TSO complex is envioronment where job is running.
Let us know if you have any other qury
Correct me if i am wrong. |
|
Back to top |
|
|
jkbytes
Active User
Joined: 19 Feb 2005 Posts: 139 Location: South Africa
|
|
|
|
You can find the information as in the following format in theJESMSGLG in Spool, if you are authorized to view spool.
Code: |
NP DDNAME StepName ProcStep DSID Owner C Dest Rec-Cnt Page
s JESMSGLG JES2 2 MTPLC01 H LOCAL 36
JESJCL JES2 3 MTPLC01 H LOCAL 77
JESYSMSG JES2 4 MTPLC01 H LOCAL 61 |
Code: |
05.28.47 JOB00546 ---- FRIDAY, 03 JUN 2005 ----
05.28.47 JOB00546 IRR010I USERID MTPLC01 IS ASSIGNED TO THIS JOB.
05.28.48 JOB00546 IEF677I WARNING MESSAGE(S) FOR JOB MTPLC01C ISSUED
05.28.48 JOB00546 ICH70001I MTPLC01 LAST ACCESS AT 05:27:45 ON FRIDAY, JUNE 3,
05.28.48 JOB00546 $HASP373 MTPLC01C STARTED - INIT 4 - CLASS A - SYS SYS1
05.28.48 JOB00546 IEF403I MTPLC01C - STARTED - TIME=05.28.48
05.28.51 JOB00546 IEF404I MTPLC01C - ENDED - TIME=05.28.51
05.28.51 JOB00546 $HASP395 MTPLC01C ENDED
|
|
|
Back to top |
|
|
shannu
New User
Joined: 01 Jun 2005 Posts: 17 Location: bangalore
|
|
|
|
hi jkbytes,
I am new to this online discussion.
Does it needs to answer the query precisly as you explained and
pasted screenshots.
Thanks and Regards,
shannu. |
|
Back to top |
|
|
kanak
Moderator
Joined: 12 Mar 2005 Posts: 252 Location: India
|
|
|
|
hi shanu,
the main motive behind giving screen shots is it wil help the persone who has the query in more better way. If you can explain the answer clearly and precisly with ur words only, i don't think screen shot is needed.
It's givem because picture are equivalent to 1000 words. Hope this will clarify ur doubts.
Any comment are welcome. |
|
Back to top |
|
|
shannu
New User
Joined: 01 Jun 2005 Posts: 17 Location: bangalore
|
|
|
|
you are right.
Thanks,
shannu. |
|
Back to top |
|
|
shihua
New User
Joined: 27 May 2005 Posts: 6 Location: Shanghai, China
|
|
|
|
Hi All,
You mis-understand my question.
I know we can get the job start time and end time from
spool JEMSGLG.
but I want to know how to get the time info automatically,
such as read a file that reord the time info.
we need get the elapse time to do some performance tuning |
|
Back to top |
|
|
Deepa.m
New User
Joined: 28 Apr 2005 Posts: 99
|
|
|
|
..can anyone explain me the difference between ELAPSE TIME, TOTAL JOB CPU TIME ,START TIME,END TIME.How they are calculated? I will like if explained for the given example.
STARTED - TIME=17.45.01
STEPNAME PROCSTEP PROGRAM CPU-TIME COND
CA07RMS U11STEP U11RMS 00:00:00.01 0000
STM002DS R000 IEFBR14 00:00:00.00 0000
STM002DS R010 SORT 00:00:00.07 0000
STM002DS R020 STM8222A 00:00:00.02 0000
STM002DS R030 EZTPA00 00:00:00.08 0000
ENDED - TIME=17.45.07
****TOTAL JOB CPU TIME**** 00:00:00.18
ELAPSED TIME 00:00:06.08 |
|
Back to top |
|
|
Shanu.sukoor
New User
Joined: 31 Jan 2006 Posts: 32 Location: India
|
|
|
|
acc to my knowledge.
Start time is the mainframe time when the execution started
End time is when it terminated
CPU time is the total CPU time consumed by the job in the mean time (lot of jobs will be recieving CPU time paralally) |
|
Back to top |
|
|
Nimesh.Srivastava
New User
Joined: 30 Nov 2006 Posts: 78 Location: SINGAPORE
|
|
|
|
To find out the elapsed time (ie the total time spent in processing of the job including the DB & file activities), it can also be found from held spool listing (s;h) . It looks something like
JOBNAME TE ESYS ST TIME ST DATE END TIME END DATE
TCCISP01 332 TDS1 21:06:39 2006.332 21:33:03 2006.332
TCCISP01 332 TDS1 22:21:56 2006.332 22:44:08 2006.332
LPCIBP01 332 TDS1 23:12:48 2006.332 23:13:14 2006.332
We use the same to check for performance of our programs as its very tedious to go and open each Job. |
|
Back to top |
|
|
galgatenikhil
New User
Joined: 25 Dec 2007 Posts: 1 Location: Pune
|
|
|
|
Hi All,
I have similar kind of question. I want to prepare a job which will note down the starting time, ending time and elasped time for 2 to 3 jobs into a PS file. Can any one help me regarding this?
Thanks!! |
|
Back to top |
|
|
enrico-sorichetti
Superior Member
Joined: 14 Mar 2007 Posts: 10886 Location: italy
|
|
|
|
process the smf datasets
they contain everything is needed for a rough performance/resource consumption evaluation |
|
Back to top |
|
|
|