How to get a list of jobs that last ran within a specified period of time
search cancel

How to get a list of jobs that last ran within a specified period of time

book

Article ID: 39061

calendar_today

Updated On:

Products

CA 7 Workload Automation

Issue/Introduction

Need to get delete some old jobs that are in the database, that have not ran in a long time or a specified period of time. How can I get a list of these jobs?

Resolution

You can use the LJOB command in a BTI (batch terminal interface) job to list job with run date range. Here is an example of the command:

LJOB,JOB=*,LRUNDATE=(23001,23365),LRUNTIME=(0001,2359) 

 

The above example will show jobs that last ran from Jan 1st 2023 until Dec 31st 2023. Meaning these jobs have not ran in over a year and probably can be deleted from data base.