Query to fetch total number of job defined/created on d-series
search cancel

Query to fetch total number of job defined/created on d-series

book

Article ID: 248034

calendar_today

Updated On:

Products

CA Workload Automation DE

Issue/Introduction

What query to fetch the total number of jobs defined/created on d-series. Regardless of its status i.e. held, suspended, or had do not run on it.

Environment

Release: 12.3

Component: D -Series

Cause

Question

Resolution

We can query the list of all the jobs defined on D-Series using the Jobmap CLI command.

help jobmap

Usage: 
JOBMAP EVENTS("events") [JOBS("jobs")] [SCHEDULECRITERIA("schedulecriteria")] [DISPLAYFIELDS("displayfields")] [NODISPLAYFIELDS("nodisplayfields")]

Display jobmap information including the last run of a job.
Example:
jobmap events("SCHEDMASTER.VERIFY")
jobmap events("*")
jobmap events("SCHEDMASTER.VERIFY") jobs("WIN*")
jobmap events("SCHEDMASTER.VERIFY") schedulecriteria("friday")
jobmap events("SCHEDMASTER.VERIFY") DisplayFields("SUCC,PRED")
jobmap events("SCHEDMASTER.VERIFY") NoDisplayFields("SUCC")

events <string>
        The Event name. If not specified, all Events details are listed. Wildcard characters are permitted. * represents any string of zero or more characters. ? represents any single character.
        Sequence of characters matching regular expression "[\p{L}\p{N}@$_\.\\?]".

jobs <string>
        The job name(s). If not specified, all jobs details are listed. Wildcard characters are permitted. * represents any string of zero or more characters. ? represents any single character.
        Sequence of characters matching regular expression "[\p{L}\p{N}@$_\.\\?]".

schedulecriteria <string>
        The schedule statement.

displayfields <string>
        A comma separated field list to display in the output.

nodisplayfields <string>
        A comma separated field list to skip in the output.