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

Last Job Run Date from CA7


IBM Mainframe Forums -> CA Products
Post new topic   Reply to topic
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
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

Moderator Emeritus


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

PostPosted: Fri Jan 14, 2011 4:24 am
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: 8696
Location: Dubuque, Iowa, USA

PostPosted: Fri Jan 14, 2011 5:25 am
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: 1742
Location: Tirupur, India

PostPosted: Fri Jan 14, 2011 1:42 pm
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> CA Products

 


Similar Topics
Topic Forum Replies
No new posts Replacing 'YYMMDD' with date, varying... SYNCSORT 3
No new posts Modifying Date Format Using DFSORT DFSORT/ICETOOL 9
No new posts Need to convert date format DFSORT/ICETOOL 20
No new posts Need help to append a date&tsp at... DFSORT/ICETOOL 9
No new posts Fetch data from programs execute (dat... DB2 3
Search our Forums:

Back to Top