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

i want to check whether a job has run today or not


IBM Mainframe Forums -> All Other Mainframe Topics
Post new topic   Reply to topic
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
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

Global Moderator


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

PostPosted: Tue Apr 17, 2007 5:32 pm
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: 8797
Location: Welsh Wales

PostPosted: Tue Apr 17, 2007 5:33 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Wed Apr 18, 2007 12:47 pm
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

Superior Member


Joined: 14 Mar 2007
Posts: 10872
Location: italy

PostPosted: Wed Apr 18, 2007 12:56 pm
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
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: 8797
Location: Welsh Wales

PostPosted: Thu Apr 19, 2007 2:26 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> All Other Mainframe Topics

 


Similar Topics
Topic Forum Replies
No new posts SCOPE PENDING option -check data DB2 2
No new posts Check data with Exception Table DB2 0
No new posts How to check whether who renamed the ... JCL & VSAM 3
No new posts No ++JCLIN, APPLY CHECK job JCL & VSAM 1
No new posts EMPTY file check scenario JCL & VSAM 6
Search our Forums:

Back to Top