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
 

 

JCL to get the execution end time of jobs

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> All Other Mainframe Topics
View previous topic :: :: View next topic  
Author Message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Tue May 12, 2009 11:04 am    Post subject: JCL to get the execution end time of jobs
Reply with quote

Hi,
We are trying to automate a process wherein, I need to get the execution end time of 10 jobs. Now we are doing it manually by checking it in $AVRS. Can anyone please explain me how can i get execution end time of a job by running a JCL.

Thank you,
Ravi
Back to top
View user's profile Send private message

expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue May 12, 2009 11:14 am    Post subject:
Reply with quote

That all depends on which program the JCL processes.
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Tue May 12, 2009 1:44 pm    Post subject:
Reply with quote

Hi,

expat wrote:
That all depends on which program the JCL processes.


I am able to see the execution end time iof job A n $AVRS. Now, i want another jcl ,job B, which on submitting will give me the execution end time of job A. is there any program which can be called from JCL to extract $AVRS data, like SASSBSTR is used to extract CA 7 data.

Thank you
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7912
Location: Bellevue, IA

PostPosted: Tue May 12, 2009 4:46 pm    Post subject:
Reply with quote

Have you looked at the $AVRS User's Manual? Have you spotted the $AVRPULL batch job yet? If not, I suggest you start reading.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue May 12, 2009 5:02 pm    Post subject:
Reply with quote

Just out of interest, having been in IT for 35 years, I have never felt the need to know at what time jobs have finished.

Would you mind explaining the reason behind your question.
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Tue May 12, 2009 5:26 pm    Post subject:
Reply with quote

expat wrote:
Just out of interest, having been in IT for 35 years, I have never felt the need to know at what time jobs have finished.

Would you mind explaining the reason behind your question.


We need to prepare a monthly report documenting the execution start and end time of certain repot generation jobs.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Tue May 12, 2009 5:31 pm    Post subject: Reply to: JCL to get the execution end time of jobs
Reply with quote

why not process the SMF records ???
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7912
Location: Bellevue, IA

PostPosted: Tue May 12, 2009 5:32 pm    Post subject:
Reply with quote

MIPS, abominable snowmen, elapsed time, Sasquatch, looping batch jobs, Loch Ness monster -- mythological figures all.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Tue May 12, 2009 5:39 pm    Post subject:
Reply with quote

[rant on]

OK, here I go again.

Usually every site has a capacity and performance group, which will almost certainly already have all of the information that you need. That was certainly the case when I was responsible for perf & cap.

It would be much quicker for you to talk to them and see if
(a) They could actually produce the report for you as part of their daily routine
(b) They tell you where the information is stored

This type of report generation is almost always the reinvention of the wheel, with you duplicating the effort of another group to gather information that is already gathered and available.

And just think of the street cred when you tell your boss how quickly you sorted it out

[rant off]
Back to top
View user's profile Send private message
dbzTHEdinosauer

Global Moderator


Joined: 20 Oct 2006
Posts: 6966
Location: porcelain throne

PostPosted: Tue May 12, 2009 5:40 pm    Post subject:
Reply with quote

you could check with the log that your scheduler produces.
Back to top
View user's profile Send private message
hiravibk
Warnings : 1

Active User


Joined: 14 Dec 2008
Posts: 103
Location: India

PostPosted: Tue May 12, 2009 6:09 pm    Post subject:
Reply with quote

Robert Sample wrote:
Have you looked at the $AVRS User's Manual? Have you spotted the $AVRPULL batch job yet? If not, I suggest you start reading.

I tried to get some guide for $AVRS, but could not find the user manual for $AVRS . Could you please send be the link where i can find $AVRS user manual?
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7912
Location: Bellevue, IA

PostPosted: Tue May 12, 2009 6:21 pm    Post subject:
Reply with quote

Your site support group should have downloaded and installed the manual as part of the $AVRS install, so contact them to find out where it is. Barring that, they can sign onto http://www.seasoft.com and get the manual from the vendor for you. The site does require registration before accessing the manuals, so you probably cannot do this directly.
Back to top
View user's profile Send private message
fayazbashask

New User


Joined: 28 Jun 2007
Posts: 9
Location: Hyderabad

PostPosted: Wed May 27, 2009 5:48 pm    Post subject: Reply to: JCL to get the execution end time of jobs
Reply with quote

Hopefully you can check this with REXX code.
I suggest experts comments.
We have done some sort of automations using REXX, but not this type.
Hopefully we can do this as well.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7912
Location: Bellevue, IA

PostPosted: Wed May 27, 2009 5:52 pm    Post subject:
Reply with quote

Fayaz, REXX code is not needed. $AVRS provides a batch job as part of their installation that does exactly what the o/p wanted. Why reinvent the wheel?
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8593
Location: Back in jolly old England

PostPosted: Wed May 27, 2009 5:52 pm    Post subject: Re: Reply to: JCL to get the execution end time of jobs
Reply with quote

fayazbashask wrote:
Hopefully you can check this with REXX code.
I suggest experts comments.
We have done some sort of automations using REXX, but not this type.
Hopefully we can do this as well.

Sigh ......... another member of the wheel reinvention society.
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10202
Location: italy

PostPosted: Wed May 27, 2009 5:54 pm    Post subject: Reply to: JCL to get the execution end time of jobs
Reply with quote

Quote:
Hopefully you can check this with REXX code.
I suggest experts comments.


Your is the suggestion Yours are the comments icon_cool.gif
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


Joined: 06 Jun 2008
Posts: 7912
Location: Bellevue, IA

PostPosted: Wed May 27, 2009 5:54 pm    Post subject:
Reply with quote

expat, GMTA! 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 -> All Other Mainframe Topics 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 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. Get correct date and time when curren... balaji81_k DB2 24 Fri Oct 14, 2016 10:40 pm
No new posts How to show message using batch jobs madprasy TSO/ISPF 7 Fri Sep 09, 2016 6:55 pm
No new posts cics & real time monitoring icehat CICS 5 Wed Sep 07, 2016 2:29 am


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