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
 

 

Last Job Run Date from CA7

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> CA Products
View previous topic :: :: View next topic  
Author Message
Andy85

New User


Joined: 25 Dec 2008
Posts: 35
Location: India

PostPosted: Fri Jan 14, 2011 4:00 am    Post subject: Last Job Run Date from CA7
Reply with quote

Hi,

I have a list of jobs (all jobs in our library) and need to find out from CA7, when the job ran last (or whether job had any run in last 1 year). Is there any way of getting this information from CA7? This would help us to remove the source code and JCLs from library, if job has not ran since 1 year. I searched through the forum but was not able to get any. Can someone guide me on this?

Thanks in advance for any help you can provide.

--- Andy
Back to top
View user's profile Send private message

dick scherrer

Site Director


Joined: 23 Nov 2006
Posts: 19270
Location: Inside the Matrix

PostPosted: Fri Jan 14, 2011 4:24 am    Post subject:
Reply with quote

Hello,

Many organizations run monthly reports from their SMF data that shows all of the jobs run for that month. These are usually archived online for a period of time. Also, an extract file of job-related information is often created and kept for some period of time.

Suggest you ask the system support people if such is retained on your system.
Back to top
View user's profile Send private message
Robert Sample

Global Moderator


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

PostPosted: Fri Jan 14, 2011 5:25 am    Post subject:
Reply with quote

CA-7 command LJOB,JOB=???????? lists the last run date for job ???????? and can be run interactively or in batch.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1459
Location: Azeroth

PostPosted: Fri Jan 14, 2011 1:42 pm    Post subject:
Reply with quote

Hi,

Sample JCL for Robert's batch suggestion

Code:
//STEP1    EXEC PGM=SASSBSTR                                                 
//STEPLIB  DD  DSN=XXXX.YYY.CAILOAD,DISP=SHR             
//SYSPRINT DD  DSN=OUTPUT.FILE,DISP=(MOD,CATLG,DELETE),
//             DCB=(DSORG=PS,RECFM=FBA,LRECL=133,BLKSIZE=0),   
//             UNIT=SYSALLDA,SPACE=(CYL,(5,10),RLSE)           
//SYSUDUMP DD  SYSOUT=*                                       
//BATCHIN  DD  DSN=XXXX.BATCHI#1,DISP=SHR           
//BATCHOUT DD  DSN=YYYY.BATCHO#1,DISP=SHR           
//UCC7CMDS DD  DSN=ZZZZ.COMMDS,DISP=SHR             
//SYSIN    DD  *                                               
/LOGON USERID,PASSWORD                                       
/UID,R=SYSTEM ID                                                   
LJOB,LIST=NODD,JOB=YOUR JOB*                                       
/LOGOFF                                                       
/*


Sysprint DD has the output of the ca7 commands on SYSIN, you could process the output file and it has the last run date on the job, with time as well.

Hope it helps.
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 -> CA Products All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am
This topic is locked: you cannot edit posts or make replies. How to pass the previous month date i... Suganya87 DFSORT/ICETOOL 5 Mon Oct 31, 2016 4:13 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
No new posts Change date (DD/MM/YY) in 2nd record ... uday kiran DFSORT/ICETOOL 12 Wed Sep 07, 2016 10:57 pm
No new posts Add system date inside of a PS file a... pramitdas DFSORT/ICETOOL 5 Sun Aug 28, 2016 12:06 am


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