Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

How to get the run rime or elapsed time of the JOB

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
mull

New User


Joined: 21 Sep 2006
Posts: 15
Location: india

PostPosted: Wed Oct 11, 2006 11:29 pm    Post subject: How to get the run rime or elapsed time of the JOB
Reply with quote

Hi All,
Is there any utility or way i can get the run rime or elapsed time of my job.I want to get the run time of the jobs in my trail.

Thanks
Back to top
View user's profile Send private message

MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Wed Oct 11, 2006 11:57 pm    Post subject: Re: run time of jobs
Reply with quote

In our shop we have a software(Cycle View) which gives elapsed time of a job. I think other than this what i know of is one would have to scan the SAR and look for string "** EOJ" and in same line ELAPSED TIME=.

You may want to search in DFSORT forum and i think sometime back i saw a posting using DFSORT to extract SAR records.
Back to top
View user's profile Send private message
mull

New User


Joined: 21 Sep 2006
Posts: 15
Location: india

PostPosted: Thu Oct 12, 2006 12:41 am    Post subject:
Reply with quote

tried looking in DFSORT but could not locate anything.
could you help me out if you get something
Back to top
View user's profile Send private message
MFRASHEED

Active User


Joined: 14 Jun 2005
Posts: 186
Location: USA

PostPosted: Thu Oct 12, 2006 1:45 am    Post subject: Re: run time of jobs
Reply with quote

Just do regular search with 'SAR' or 'Elapsed Time' and you will get hits and might find better solution.

You can execute:

Code:

//STEP1    EXEC PGM=SARBCH                             
//SYSUDUMP DD SYSOUT=*                                 
//SYSPRINT DD SYSOUT=*                                 
//SAROUT   DD DSN=DATASET.FOR.SAROUT,                 
//            DISP=(,CATLG,DELETE),UNIT=SYSDA                                   
//            SPACE=(CYL,(90,100),RLSE),               
//            DCB=(MODEL.DSCB1,BLKSIZE=0)             
//SYSIN    DD  *                                       
/DBASE NAME=XXX.VIEWXXXX                               
/PRINT ID=JOBNAME GEN=11868 SEQ=00001 DDNAME=SAROUT   
/*                                                     


which will create you a dataset with SAR information. Dataset will be Recfm VBM, Lrecl 137.

Or in your shop there must be production datasets with sar information
find that out and then you can write a SORT step to extract **EOJ line where job name is job you want to extract. Assuming you want to do this for job runs over period of time. This way you can concatenation multiple files.

Example of EOJ line
Code:

21.14.55 JOB48728  ** EOJ xxxx9999  xxx           CPU TIME= 00:00:01.28  ELAPSED TIME= 00:00:38.76


Step to extract EOJ line:

Code:

//STEP2    EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=DATASET.FOR.SAROUT,DISP=SHR   
//SORTOUT  DD DSN=CNVERTED.DATASET.SAROUTO,           
//            DISP=(,CATLG,DELETE),UNIT=SYSDA   
//            SPACE=(CYL,(90,100),RLSE),         
//            DCB=(LRECL=132,RECFM=FB)           
//SYSIN    DD  *                                 
  SORT FIELDS=COPY                               
  OUTREC FIELDS(1:1,132),CONVERT                 
/*                                               
//STEP3    EXEC PGM=SORT                         
//SYSOUT   DD SYSOUT=*                           
//SORTIN   DD DSN=CNVERTED.DATASET.SAROUTO,DISP=SHR   
//SORTOUT  DD SYSOUT=*             
//SYSIN    DD  *                                 
  SORT FIELDS=COPY                               
  INCLUDE COND=(25,15,CH,EQ,C'** EOJ XXXX9999') 
  OUTREC FIELDS=(1:32,8,9:55,49)                 
/*                                               


and output will contain, JOB NAME ,CPU TIME, and Elapsed Time.
Code:

xxxx9999 CPU TIME= 00:00:01.28  ELAPSED TIME= 00:00:38.76
Back to top
View user's profile Send private message
mull

New User


Joined: 21 Sep 2006
Posts: 15
Location: india

PostPosted: Thu Oct 12, 2006 9:44 pm    Post subject:
Reply with quote

Thanks a lot will try it out
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts CICS transaction slow response time vasanthz All Other Mainframe Topics 3 Thu Jan 19, 2017 1:31 am
No new posts DD DUMMY & CPU TIME Nileshkul Testing & Performance analysis 16 Mon Dec 19, 2016 11:35 pm
This topic is locked: you cannot edit posts or make replies. Get a job submitted itself every time... arunsoods JCL & VSAM 3 Tue Nov 22, 2016 4:05 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us