Can anyone tell me what is the difference between Force Completing a job and cancelling the job? Also let me know how to restart a job through CA7? It will be useful for me if you provide me the commands also for performing these 3 actions.
Joined: 13 Jun 2007 Posts: 632 Location: Wisconsin
Force complete allows other JCL to think the job completed successfully and they will trigger if it they are dependent on that job. Canceling stops the whole job stream at that job.
Joined: 13 Jul 2006 Posts: 205 Location: At my desk
Madhan,
Let me explain you in simple terms,
When you cancel a job the downstream jobs will not be completed/triggered. The job will abend with a condition code like the exaple i have quoted saying job cancelled by operator. The job will wait in the requirement queue waiting for the restart instructions.
Quote:
BATCHTSO STEP01 - ABEND=S222 U0000
If you say Force complete, it means the dowstream jobs will be triggered.
We assume or mark the job successfull and the job will be with the condition code/return code as Zero and will trigger the downstream.
Code:
LQ,ST=RSTR,SEQ=JOB
Will list the jobs in cancelled/abended state. In simple terms waiting for restart instructions from the operator.
I beleive we do not have access to restart the job on our own, we need to take the help of scheduling people to do tat.
Code:
LRLOG,JOB=jobname
Will tell you about the run information about the job. If the job is force completed you can see the return code set as Zero here after an unsuccesssfull run.