Ca7 Commands: LQ, Job, List RQMT
Ca7 Commands: LQ, Job, List RQMT
LQ,JOB=*,LIST=RQMT
Lists all jobs with the requirements status.
:XQM
This screen gives the Jobname along with the following requirements;
J- Job requirement
I- Internal Requirement
E- External requirement
U- User Requirement
N- Network Requirement
SHJV – S -Submit time, H-Hold, J- JCL Error, V-Verification.
*RST - Restart job
In XQM,
- x - before the Jobname; opens the job. (If the job doesn’t have *RST)
When the job is opened,
x- in front of the requirement to post off the requirement.
e- Edit the jcl of the job
In the opened jcl, PF, PB (in the line nos.) works as F7, F8.
SR- save replace the jcl.
Exit- exit from editing jcl, to xqm.
In case of JCL error it wont restart, until you post off the J req.
To post off a requirement, go to the job and put X before the req, press enter.
Never give S in XQM, it will post off the Submit time req.
Whenever 2 jobs are trying to access the data set, it is called Data contention.
:XQM,JOB=Jobname
This would directly open the job in the REQ Q, showing the requirements.
LQ command:
– Will list information on jobs from the REQ, RDY, ACT of CA7.
Like:
LQ,JOB=jobname
– This command shows the current status of the job, whether it is active, in an abend
status, or if it is waiting on some kind of dependency. This command is useful in
showing what queue the job is in. The queues are request, ready or active.
LQ,JOB=DHD8009A – displays:
:LQ,JOB=jobaname,LIST=RQMT
This command displays the job with all the requirements.
:LQ,JOB=AB*,LIST=RQMT.
Lists all the jobs with names starting with AB, and listing all the requirements.
:LQ,JOB=AB*,ST=LATE
Lists the jobs which have Late Status.
:LQ,JOB=AB*,ST=SKEL
Lists the jobs with Skeleton Status.
:LREQ,JOB=JOBNAME
LREQ,JOB=TAWWTSOL
This Lists the job TAWWTSOL with all the details like jobid, time, schid, entry mode, requirements.
Like in this screen shot, it shows that this job is waiting in the REQ q, with only one requirement of Submit
time. It will run on the time specified here.
:LREQ,JOB=AB*
This lists the jobs residing in the REQ q with names starting with AB… , with their respective
requirements.
:LREQ,JOB=jobname,LIST=ALL
This lists all the requirements for this job, like JOB INFO, REQUIREMENT STATUS, JCL INFO.
Contd.:
JCL INFO;
LRDY Command :
Will display jobs that are currently ready to run. Jobs that are in this queue are sometimes
waiting on an initiator or have a JCL error, which need to be requeued by operator to be placed in LIST
queue.
Here we get the Jobname, jobid, deadline time, submit/start time, due-out time, schid of the job and
importantly the STATUS of the job(late).
LACT
This displays all the jobs present there in the ACTIVE Q.
Here it also gives the JOB STATUS as Condition codes,LATE.
LPRRN
This displays the job information from the prior run queue. Will give information about the last
successful completion of job.
LPRRN,JOB=Jobname displays:
LRLOG Command
Displays the log of all the jobs for 3 days or the Last 5 runs history . It displays whether the job was force
completed,canceled, abended or was completed successfully.
In LRLOG, we get the Actual Start and End Time of the JOB.
LRLOG,JOB=*,DATE=*
LRLOG,JOB=DVC0550A,DATE=*
Item Description
A. Describes the Type of Event
C- CompletionF- Force Complete
R- Restart X- Cancel
B. Date and time that the event was written to the run log. The date is in
Julian format and the time is in hours and minutes, military time.
C. Describes the type of object that was involved with this event
J- Job E- External Job
I-Input Network O- Output Network
M. An L at the end of the completion time indicates that job was late.
LIST
Will display a jobs currently in abend queue that are waiting to be restarted.
DEMAND Command:
One of the Entry Mode of a JOB into the Request q.
* Always use DEMDH & SCHID while demanding a job.
DEMAND,JOB=Jobname,SCHID=xx,DATE=xxxxx,TIME=xxxx
DEMAND,JOB=JobA,SCHID=01,DATE=07277,TIME=1900
This command will DEMD the jobA with SCHID 01 instantly, which would be in there in the REQ q
with the Requirement of the Submit Time. This JobA will remain in the REQ q and will run at time 1900 on
date 07/277(Julian Date).
*~* Alwayz give the DEMAND command with HOLD i.e. DEMANDH. As this would give some time
to recheck the Job, Jobname, schid etc..
Also there is no SCHID in the above command, so it will by default take the first schid defined in the schedule
definition of the JOB
DEMANDH,JOB=Jobname,SCHID=xx
This is the correct way to demand any job.
After checking the Jobname, schid etc., we can POST OFF the H (Hold) requirement of the Job in the XQM.
Using DEMANDH we can get enough time to crosscheck the details.
DEMANDH,JOB=Jobname,SCHID=xx,SET=NTR
If we don’t want a job to Trigger any other job, we can demand it using SET=NTR
This SET=NTR sets the job to NO TRIGGER, i.e. this job will run with schid=xx and wont trigger other jobs in
the stream.
jobAjobBjobCjobDjobE.
Want to demand jobC but don’t want D & E to run.
Goto DB.7
FE- Fetch Edit. (F-fetch only)
Member- …..
DSN-….. JCL ID- …
SAVE it.
Overtype EDIT with RUN or RUNH….
Then
Check it in XQM panel.
/*/
RUN COMMAND:
RUN,JOB=Jobname,S
RUN,JOB=jobA, -This command will run the jobA instantly.
RUN,JOB=Jobname, -This command will run the jobA instantaneously and wont trigger other jobs in
stream.
Always use jobID for cancelling any job, do not use Jobname as it would cancel all the intances of the job. As
there could be multiple instances of the same job in the REQ q.
CANCEL,JOB=jobID, REASON=TXT….
CANCEL,JOB=jobID,REASON=txt,FORCE=YES.
CANCEL,JOB=JOBID,REASON=TXT,FORCE=YES
Here we are using force to cancel this job.
LJOB command:
LJOB is used to list the jobs.
LJOB,JOB=Jobname,LIST=ALL
LJOB,JOB=ADBMACCM,LIST=ALL
This displays or lists all the information of the job like Job Information, Schedules, Step and DD information,
requirements and network connections. Means all the information about this job.
LJOB,JOB=JOBNAME,LIST=RQMT
LJOB,JOB=jobname,LIST=TRIG - This command displays the jobs which get triggered on the completion
of this job.
Here job ORCUSTSB triggers the following jobs.
LJOB,JOB=jobname,LIST=RQJOB
This command will tell you what job requirements that need to be satisfied before the job you are
inquiring on can be released to run.
LJOB,JOB=Jobname,LIST=NODD
Displays all the job info excluding the DD info.
LJOB,JOB=jobname,LIST=DEPJ
LJOB,JOB=JobA,LIST=DEPJ -This command will tell you what jobs are dependent on this jobA
running successfully before they can run on CA-7. In this situation JobA would be a requirement on JobZ.
Ex:
LJOB,JOB=DZZ0020A,LIST=DEPJ This command will tell you what jobs are dependent on DZZ0020A
running successfully before they can run on CA-7. In this situation DZZ0020A would be a requirement on
DZZ0050A.
LJOB,JOB=jobname,LIST=STEPDD
Displays job, step, and DD information.
LJOB,JOB=jobname,LIST=RQDSN
– Displays data set requirement information on job.
LJOB,JOB=jobname,LIST=RQUSR
LJOB,JOB=ACHGACCM,LIST=RQUSR
– Displays user requirements only.
JCL & LJCL command:
JCL,JOBNAME
Opens the JCL of the job in EDIT mode.
Here to move up, down use PF, PB as shown above. Save replace to save the changes made in the jcl.
LJCL,JOB=jobname
Opens the JCL of the job in BROWSE mode.
Pressing ENTER shows the next page of jcl.
LDSN command:
LDSN,DSN=DataSetName,LIST=ALL
LDSN,DSN=LALIT.job.test,LIST=ALL
Lists all the information about this DSN (Lalit.job.test) like which jobs are using this DataSet and their
steps(step no.) in which the dataset is being used. Also what is the disposition whether the job is using it as
SHR, OLD(exclusive rights).
LSCHD command:
LSCHD,JOB=Jobname,LIST=CALS
Lists the schedule of the job.
But this lists only for those jobs which have the entry mode of SSCN.
Here this job has total 6 schids, date/time of the last maintenance.
Description of each schid like DOTM, LEADTM, SUBTM, STARTTM. Whether it is scheduled on the daily,
weekly or monthly basis.
Here in this screen, it shows the schedule of job with its schid, whether it is a daily, weekly or a monthly job.
In the above LSCHD command, LIST=CALS means the scheduling calendar of the year.
FSTRUC Command:
This is used for the ‘Forward Structure of the JobStream’ of the job.
FSTRUC,JOB=Jobname,SCHID=xx
FSTRUC,JOB=ORCUSTSB,SCHID=01
Displays the whole forward job structure of the job stream ORCUSTSB with schid=1.
Level Nos, Jobname, Expected or scheduled Start and End DTTM(Date Time).
Triggering – which of the above jobs have triggered this job.
SID – schid.
| Job F | Job Z
| |
Jobstream with Schid01 JobA JobB JobC JobD
Now in this scenario, only by this level no., its difficult to understand which job Triggered JobZ.
We can know this using command;
LJOB,JOB=Jobname,LIST=TRIG.
Ljob,job=jobz,list=trig
FRJOB,JOB=Jobname,SCHID=xx
This command displays the reverse Structure of the Job in the Stream.
Suppose we want to see the reverse forecasting of job ACSFTPCL , from the JobStream of OCRUSTSB shown
above.
FRJOB,JOB=ACSFTPCL,SCHID=01
FORECASTING of the JOB :
FJOB,JOB=*,FROM=(mmddyy,hhmm),TO=(mmddyy,hhmm)
Here (mmddyy,hhmm) is the date as in months date year – 092207(for Sept. 22, 2007) with Time=
2200.
It lists out all the jobs SSCN and RUN in this particular time period.
FJOB,JOB=*,FROM=(100407,0100),TO=(100507,1400)
It displays;
FJOB,JOB=AB*,FROM=(mmddyy,hhmm),SPAN=24
This gives all the jobs with names starting with AB… which ran in the span of 24 hrs starting form the
Date & Time specified as above.
Here in this screen shot we get the start, end time of the job… with schid.
SCHDMOD COMMAND:
SCHDMOD
Displays CA7 Modification to resolved schedule dates.
ADDRQ,JOB=jobID,DEPJOB=jobname
Like,
ADDRQ,JOB=9825,DEPJOB=DLIB1801
| |Jobname..
| job ID of the job to which we are adding the requirement.
Here we are adding the requirement DEPJOB i.e. Job Dependency to the job with JobID 9825.
We are making the job with ID 9825 dependent on the job DLIB1801. Thus when this job(Jobname) runs then
only the job(jobid) will start.
ADDRQ,JOB=jobID,USR=TxT1
ADDRQ,JOB=jobID,USR=TxT2
ADDRQ,JOB=jobID,USR=TxT3
WHOHAS DSN
EX:
WHOHAS P.FP.F101.FPI041.G2469V00
Give so/p as
ZB64-XMXDTSO /S
***
Call operator to cancel the userid.
DEMANDH,JOB=JOBNAME,SET=NTR,TYPE=RES
Dead line Time:
It is the time by which the Job should meet the requirements and should start successfully.
Elapsed Time:
Average time of last five successful runs of the Job is called Elapsed time and is calculated
by CA7.
Submit Time:It is the time where the Job should get submitted to the Operating System.
Trigger :
Used to describe relationships between jobs in the same schedule. For example, job1 can
trigger job2. Job2 is then described as having been triggered by Job1.
JOB1JOB2JOB3
In the given example for Job2, Job1 is called the Predecessor Job and Job3 is called as the
Successor Job.
Dependencies:
In the above example Job1 has an internal requirement of JobA and Job1 will get posted
only when JobA runs successfully. Hence Job1 is said to be dependent on JobA.
In the given example for Job2, Job1 is called the Predecessor Job and Job3 is called as the
Successor Job.
JOB1JOB2JOB3
In the given example for Job2, Job1 is called the Predecessor Job and Job3 is called as the
Successor Job.
Common CA-7 Terms and Definitions
When a job enters into the CA-7 queue it can complete normally, execute and fail, or wait
in the queue until all requirements are satisfied. For jobs that execute and fail the
operator can take these actions –
FORCE COMPLETE - A failed job is marked within CA-7 as a normal completion. Jobs
waiting for the successful completion of this job will now run - if all other requirements of
the job are satisfied.
CANCEL - A failed job is removed from the CA-7 queue. Jobs waiting for the successful
completion of this job will not run unless the requirement for the failed job is manually
satisfied and if all other requirements of the job are satisfied.
RESTART - The term restart is interpreted as restarting the job in the step in which it
has failed. (Or) Restart the failed job from the particular step as per job document ( Prose
which defined for that job .
RE-RUN - The term re-run is interpreted as re-running the job from the top, or first step
of the job. RESUBMIT and RE-RUN have the same meaning.
Other common terms include -
SCHID - A schedule or job stream can have many different variations. Each variation is
called a schid or schedule id. For example, Job1 may trigger Job 2 on schid 1, but on
schid 3 Job 1 may trigger Job 3.
HOLD - A job can be placed on hold before or after it enters the CA-7 queue. The job
will remain in hold, meaning it will not run, until the hold is removed.