1.2.2 Running a Job
Use the
command to start a job. For example, if you want to run the "quickie" job, you would
run
enter the following command:
>zos run quickie
If the job submission was successful, a JobID is displayed:
JobID: tester.1.quickie
To specify parameters when you start a job, add the parameters to the command line. For example, if
you wanted to run the quickie job, specifying the
parameter with a value of 100, you
numJoblets
would enter the following command:
>zos run quickie numJoblets=100
JobID: tester.2.quickie
The PlateSpin Orchestrate Server keeps track of your last started job so that further zos commands
can default to the last started job. To operate on a different job, specify the Job ID as a command line
parameter.
1.2.3 Monitoring a Job
A job can be monitored or managed when it is started or after it is started. To view the status of the
last started job, use the
command:
status
>zos status
Running
The server returns the status immediately. In the preceding example, the job is
, which
Running
means the job is still being processed. Possible status messages include the following:
Submitted
Queued
Started
Running
Paused
Completing
Cancelling
Failing
Completed
Cancelled
Failed
You can retrieve detailed status information about a job by using the
option in the command line,
-e
as shown in the following example for the last started job:
>zos status -e
Job Status for tester.quickie.2
-----------------------------
State: Running (waiting for resources)
Resource Count: 0
(0 this job)
Percent Complete: 1%
Queue Pos: n/a
The zos Command Line Tool
11
Need help?
Do you have a question about the PLATESPIN ORCHESTRATE 2.0.2 - COMMAND LINE REFERENCE 06-17-2009 and is the answer not in the manual?
Questions and answers