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: 8003
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: 1476
Location: Chennai

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 Date and time format in CICS Chandru3183 CICS 2 Sat Mar 18, 2017 12:46 pm
No new posts How to get current date -1 and curren... murali.andaluri DFSORT/ICETOOL 3 Wed Mar 08, 2017 2:09 pm
No new posts Overlay the system date Danielle.Filteau SYNCSORT 4 Fri Mar 03, 2017 1:16 am
No new posts Checking Current date vickey_dw DFSORT/ICETOOL 1 Wed Feb 08, 2017 11:14 pm
No new posts TOT & DATE parameter in ICEMAN hemanthj642 DFSORT/ICETOOL 4 Mon Nov 14, 2016 5:19 am


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