User`s guide

findJob
11-95
findJob
Find job objects stored in cluster
Syntax
out = findJob(c)
[pending queued running completed] = findJob(c)
out = findJob(c,'p1',v1,'p2',v2,...)
Arguments
c Cluster object in which to find the job.
pending Array of jobs whose State is pending in cluster c.
queued Array of jobs whose State is queued in cluster c.
running Array of jobs whose State is running in cluster c.
completed Array of jobs that have completed running, i.e., whose
State is finished or failed in cluster c.
out Array of jobs found in cluster c.
p1, p2 Job object properties to match.
v1, v2 Values for corresponding object properties.
Description
out = findJob(c) returns an array, out, of all job objects stored in the cluster c. Jobs
in the array are ordered by the ID property of the jobs, indicating the sequence in which
they were created.
[pending queued running completed] = findJob(c) returns arrays of all job
objects stored in the cluster c, by state. Within pending, running, and completed,
the jobs are returned in sequence of creation. Jobs in the array queued are in the order
in which they are queued, with the job at queued(1) being the next to execute. The