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.
Release: 12.3
Component: D -Series
Question
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.