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
 

 

Fetch execution time of a job using REXX.

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CLIST & REXX
View previous topic :: :: View next topic  
Author Message
ashirwad

New User


Joined: 03 Apr 2012
Posts: 5
Location: chennai

PostPosted: Wed Apr 08, 2015 6:32 pm    Post subject: Fetch execution time of a job using REXX.
Reply with quote

Hi,

I am creating a Rexx tool that will submit some jobs and give a report with output datasets, total execution time taken and other details. I am using ISFCALLS to read the spool and get MAX RC detail of a job using RETCODE. I am refering IBM Redbook - Implementing REXX
Support in SDSF that says that we can get

1. Time that execution began using TIMEE.
2. Time that execution end using TIMEN.

However using these keywords I am not able to get the times.
Please find below code snippet:
Code:

  RC_ISF = ISFCALLS("ON")                       
  IF RC_ISF = 00 THEN                           
     DO                                         
       ISFPREFIX = "'"MEMBER"'"                 
       ADDRESS SDSF "ISFEXEC ST"                 
       DO IJ = 1 TO JNAME.0                     
          IF JOBID.IJ = JID  THEN               
          DO                                     
             IF RETCODE.IJ <> '' THEN           
             DO                                 
                RTCODE = RETCODE.IJ             
                RCODE = SUBSTR(RETCODE.IJ,4,4)   
                SAY 'START TIME ' TIMEE.IJ       
                SAY 'END TIME ' TIMEN.IJ     


Any help is really appreciated.


Thanks in advance,
Ashirwad Kumar

Code'd
Back to top
View user's profile Send private message

enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed Apr 08, 2015 7:26 pm    Post subject: Reply to: Fetch execution time of a job using REXX.
Reply with quote

wouldn' t it be simpler to use the SMF data ???
Back to top
View user's profile Send private message
don.leahy

Active Member


Joined: 06 Jul 2010
Posts: 641
Location: Whitby, ON, Canada

PostPosted: Wed Apr 08, 2015 7:45 pm    Post subject:
Reply with quote

Have you tried:
Code:
address SDSF "isfexec st (ALTERNATE DELAYED)"
Back to top
View user's profile Send private message
ashirwad

New User


Joined: 03 Apr 2012
Posts: 5
Location: chennai

PostPosted: Thu Apr 09, 2015 10:44 am    Post subject:
Reply with quote

Thanks don,

It worked icon_smile.gif
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 -> CLIST & REXX All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
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
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 6 Fri Nov 18, 2016 1:48 pm
No new posts Check System time(Minute) Using TIME1... balaji81_k DFSORT/ICETOOL 5 Fri Nov 11, 2016 10:53 am
This topic is locked: you cannot edit posts or make replies. Rexx to create GDG by scanning JJ result krish.deepu CLIST & REXX 5 Tue Oct 25, 2016 5:32 pm
This topic is locked: you cannot edit posts or make replies. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm


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