Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
i want to check whether a job has run today or not

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

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Tue Apr 17, 2007 5:26 pm    Post subject: i want to check whether a job has run today or not
Reply with quote

Is it possible to check that a perticular job has run today or not, and what is the return code of the job. I have hundreds of job running daily and i have to check daily whether the jobs ran or not and what is the return code of the jobs. I want to create a sort of report which will list down all the jobs which ran today along with their return codes.
Back to top
View user's profile Send private message

superk

Moderator Team Head


Joined: 26 Apr 2004
Posts: 4650
Location: Raleigh, NC, USA

PostPosted: Tue Apr 17, 2007 5:32 pm    Post subject: Re: i want to check whether a job has run today or not
Reply with quote

First question - where are you going to get this information from?
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 Apr 17, 2007 5:33 pm    Post subject:
Reply with quote

Do you not have a scheduler package installed at your shop ?
Back to top
View user's profile Send private message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Wed Apr 18, 2007 10:36 am    Post subject:
Reply with quote

I have schedular installed. I can see all the jobs in the sar after the job execcution is over. But i dont want to go manually in the sar for 100's of jobs and check return code of each jobs. Now u will say i can run a sarbch utility to know whether a job is there in the sar for today's run or not. But sometimes the job takes time to go to the sar, and in that case it will fail. I want to know if there can be an utility which can tell me using ca7 that which all jobs ran from the list of the jobs that i provide.

Is it possible?

Thanks.
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 Apr 18, 2007 12:47 pm    Post subject:
Reply with quote

The definitive answer would be using SMF records. Type 30 is for job information and should contain the start and end times of jobs, plus return code and abend information.

Do you have SAS there ?
Back to top
View user's profile Send private message
enrico-sorichetti

Global Moderator


Joined: 14 Mar 2007
Posts: 10327
Location: italy

PostPosted: Wed Apr 18, 2007 12:56 pm    Post subject: Re: i want to check whether a job has run today or not
Reply with quote

Hi !

I guess there is some confusion here...

SAR is a report management system ( sysout archiving and distribution )
and it hs no relation whatsoever to any scheduling product/application

if Your plan has a certain schedule and the error/exception alert system has been setup in the right way You do not have any need to worry :-)
Your job has run with success, You will only get a notification in case of troubles ....

I would rather be notified in case of errors than in case of success, the ratio should be more favorable

I do not know Your job description / role in Your IT organization , but for such items You shold search for cooperation from the operations team,
and there are usually some predefined templates for it, since this type of request is normal in all the IT departments around the world

regards
Back to top
View user's profile Send private message
harshal

New User


Joined: 29 Dec 2005
Posts: 21

PostPosted: Thu Apr 19, 2007 9:09 am    Post subject:
Reply with quote

yes I have SAS
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: Thu Apr 19, 2007 2:26 pm    Post subject:
Reply with quote

Then use SAS to read the SMF type 30 records and extract the information from there.

The info that you need from the type 30 is quite easily found.

Might post some code later if I can still find it.
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
No new posts ALPHABETIC check in COBOL vidyaa COBOL Programming 8 Thu Aug 17, 2017 7:13 pm
No new posts Check if any Detail records and extra... V S Amarendra Reddy SYNCSORT 19 Mon May 08, 2017 8:54 pm
No new posts Check Binary Values for symbols gandikk CA Products 3 Tue Mar 21, 2017 5:11 am
No new posts What is the command to check MODE of ... rohanthengal CLIST & REXX 7 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

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us