Unicenter CA-Scheduler Job Management for VSE User Guide

Unicenter CA-Scheduler Job Management for VSE User Guide Unicenter CA-Scheduler Job Management for VSE User Guide

supportcontent.ca.com
from supportcontent.ca.com More from this publisher
03.03.2015 Views

7.3 Issuing Online Commands in Batch To have an appreciation for the flexibility of this capability, all of the different status codes are listed in the following tables. Major Minor Description ABENDED ACTIVE CANCEL CC=dd BACKLOG The job abended. The job abended with a completion code of X'dd' (for example, X'FF'). The schedule or job is active in the system. It is not necessarily running, but it is not on HOLD. The schedule or job was canceled: It carried over to the next production day as backlog COMPLETE OPER By an operator The schedule or job ran to completion. This includes abended, failed, and canceled jobs. (The status display indicates ENDED.) FAILED CC=nnnn The job failed with a FAILCODE of nnnn HELD The schedule or job was held: LATE INTRPTD NOTREQ STARTED SUBMITD AUTO OPER DEAD MAX MUST Due to automatic recovery By the Unicenter CA-Scheduler HOLD command The schedule or job caused a late message to be issued because it: Did not finish by the COMPLETION DEADLINE time Exceeded the MAXIMUM EXECUTION time Did not start by the MUST START BY time. The job was interrupted. The schedule or job is in the inactive queue. The schedule or job is executing. The job has been submitted. 7-12 Unicenter CA-Scheduler User Guide

7.3 Issuing Online Commands in Batch Major Minor Description SUBMFAIL WAIT The job was submitted, but failed. The schedule or job is waiting for: OPSUB PRED RESC START Operator submission (jobs only) A predecessor to be satisfied Defined resources (jobs only) Its early start time. 7.3.3 Some Examples 7.3.3.1 Example 1 The following examples show how you might issue some commands in batch. Suppose you have an online application called NETSCD and when it is shut down, you want to set an indicator that allows a set of backup jobs to begin processing. You can assign a global parameter to this function. Assume a global parameter GLBC4 and assign it a value of NETSCDUP when the system is running, and the value NETSCDWN when the system is not running and backups can be taken. You would use the following transaction in one of the first steps when starting up the NETSCD task. This step would execute the CAJUCMD0 program. SC SET GLBC4=NETSCDUP This means that whenever the NETSCD task is running, the global parameter GLBC4 is set to a value other than NETSCDWN. Now, when the system is shut down, one of the last steps is to set GLBC4 to the value NETSCDWN, which will allow the backup jobs to be started. The transaction for the step that executes the CAJUCMD0 program will be: SC SET GLBC4=NETSCDWN Chapter 7. Techniques 7-13

7.3 Issuing Online Commands in Batch<br />

Major Minor Description<br />

SUBMFAIL<br />

WAIT<br />

The job was submitted, but failed.<br />

The schedule or job is waiting <strong>for</strong>:<br />

OPSUB<br />

PRED<br />

RESC<br />

START<br />

Operator submission (jobs only)<br />

A predecessor to be satisfied<br />

Defined resources (jobs only)<br />

Its early start time.<br />

7.3.3 Some Examples<br />

7.3.3.1 Example 1<br />

The following examples show how you might issue some commands in batch.<br />

Suppose you have an online application called NETSCD and when it is shut<br />

down, you want to set an indicator that allows a set of backup jobs to begin<br />

processing. You can assign a global parameter to this function. Assume a<br />

global parameter GLBC4 and assign it a value of NETSCDUP when the system<br />

is running, and the value NETSCDWN when the system is not running and<br />

backups can be taken.<br />

You would use the following transaction in one of the first steps when starting<br />

up the NETSCD task. This step would execute the <strong>CA</strong>JUCMD0 program.<br />

SC SET GLBC4=NETSCDUP<br />

This means that whenever the NETSCD task is running, the global parameter<br />

GLBC4 is set to a value other than NETSCDWN.<br />

Now, when the system is shut down, one of the last steps is to set GLBC4 to<br />

the value NETSCDWN, which will allow the backup jobs to be started. The<br />

transaction <strong>for</strong> the step that executes the <strong>CA</strong>JUCMD0 program will be:<br />

SC SET GLBC4=NETSCDWN<br />

Chapter 7. Techniques 7-13

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!