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

How to get the job run start time and end time in JCL


IBM Mainframe Forums -> JCL & VSAM
Post new topic   This topic is locked: you cannot edit posts or make replies.
View previous topic :: View next topic  
Author Message
shihua

New User


Joined: 27 May 2005
Posts: 6
Location: Shanghai, China

PostPosted: Sat May 28, 2005 10:07 pm
Reply with quote

Hi,

Is anybody know how to catch the batch job start time and end time in jcl?
Back to top
View user's profile Send private message
grepusr3

New User


Joined: 10 May 2005
Posts: 29

PostPosted: Mon May 30, 2005 8:02 am
Reply with quote

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
View user's profile Send private message
radhakrishnan82

Active User


Joined: 31 Mar 2005
Posts: 435
Location: chennai, India

PostPosted: Mon May 30, 2005 1:21 pm
Reply with quote

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
View user's profile Send private message
shannu

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Fri Jun 03, 2005 2:32 pm
Reply with quote

You can see in sysmessages step in spool.

Does it answered your question?

regatds,
shannu.
Back to top
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Jun 03, 2005 3:46 pm
Reply with quote

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
View user's profile Send private message
jkbytes

Active User


Joined: 19 Feb 2005
Posts: 139
Location: South Africa

PostPosted: Fri Jun 03, 2005 4:04 pm
Reply with quote

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
View user's profile Send private message
shannu

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Fri Jun 03, 2005 4:25 pm
Reply with quote

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
View user's profile Send private message
kanak

Moderator


Joined: 12 Mar 2005
Posts: 252
Location: India

PostPosted: Fri Jun 03, 2005 4:30 pm
Reply with quote

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
View user's profile Send private message
shannu

New User


Joined: 01 Jun 2005
Posts: 17
Location: bangalore

PostPosted: Fri Jun 03, 2005 4:35 pm
Reply with quote

you are right.

Thanks,
shannu.
Back to top
View user's profile Send private message
shihua

New User


Joined: 27 May 2005
Posts: 6
Location: Shanghai, China

PostPosted: Sat Jun 04, 2005 9:02 pm
Reply with quote

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
View user's profile Send private message
Deepa.m

New User


Joined: 28 Apr 2005
Posts: 99

PostPosted: Mon Jun 06, 2005 12:10 pm
Reply with quote

..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
View user's profile Send private message
Shanu.sukoor

New User


Joined: 31 Jan 2006
Posts: 32
Location: India

PostPosted: Wed Feb 08, 2006 4:56 pm
Reply with quote

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
View user's profile Send private message
Nimesh.Srivastava

New User


Joined: 30 Nov 2006
Posts: 78
Location: SINGAPORE

PostPosted: Thu Nov 30, 2006 10:28 pm
Reply with quote

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
View user's profile Send private message
galgatenikhil

New User


Joined: 25 Dec 2007
Posts: 1
Location: Pune

PostPosted: Sat Mar 08, 2008 1:37 am
Reply with quote

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!! icon_rolleyes.gif
Back to top
View user's profile Send private message
enrico-sorichetti

Superior Member


Joined: 14 Mar 2007
Posts: 10886
Location: italy

PostPosted: Sat Mar 08, 2008 1:46 am
Reply with quote

process the smf datasets icon_smile.gif

they contain everything is needed for a rough performance/resource consumption evaluation
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   This topic is locked: you cannot edit posts or make replies. View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts Passing containers on START command CICS 4
No new posts To get the the current time DFSORT/ICETOOL 13
No new posts RC query -Time column CA Products 3
No new posts C Compile time time stamps Java & MQSeries 10
No new posts Parallelization in CICS to reduce res... CICS 4
Search our Forums:

Back to Top