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

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


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
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
No new posts Insert system time/date (timestamp) u... DFSORT/ICETOOL 5
Search our Forums:

Back to Top