GetJobs

class GetJobs(var connection: ZOSConnection, var httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Class to handle obtaining of z/OS batch job information

Constructors

Link copied to clipboard
fun GetJobs(connection: ZOSConnection, httpClient: OkHttpClient = UnsafeOkHttpClient.unsafeOkHttpClient)

Functions

Link copied to clipboard
fun getJcl(jobName: String, jobId: String): String

Get JCL from a job.

Link copied to clipboard

Get the JCL that was used to submit a job.

Link copied to clipboard

Get JCL from a job. Alternate version of the API that accepts a Job object returned by other APIs such as SubmitJobs.

Link copied to clipboard
fun getJob(jobId: String): Job

Get a single job object from an input job id.

Link copied to clipboard
fun getJobs(): List<Job>

Get jobs (defaults to the user ID of the session as owner).

Link copied to clipboard

Get jobs that are owned by a certain user or pattern of users.

Link copied to clipboard

Get a list of jobs that match an owner and prefix.

Link copied to clipboard

Get jobs that match a job name by prefix. Defaults to job(s) owned by the user ID in the session.

Link copied to clipboard

Get jobs filtered by owner and prefix.

Link copied to clipboard

Get spool content from a job (keeping naming convention patter with this duplication function).

Link copied to clipboard
fun getSpoolContentById(jobName: String, jobId: String, spoolId: Int): String

Get spool content from a job using the job name, job ID, and spool ID number from z/OSMF.

Link copied to clipboard

Get spool content from a job.

Link copied to clipboard
fun getSpoolFiles(jobName: String, jobId: String): List<SpoolFile>

Get a list of all spool files for a job.

Link copied to clipboard

Get a list of all job spool files for a job.

Link copied to clipboard

Get a list of all job spool files for a job. Alternate version of the API that accepts a Job object returned by other APIs such as SubmitJobs.

Link copied to clipboard
fun getStatus(jobName: String, jobId: String): Job

Get the status and other details (e.g. owner, return code) for a job.

Link copied to clipboard

Get the status and other details (e.g. owner, return code) for a job.

Link copied to clipboard

Get the status and other details (e.g. owner, return code) for a job Alternate version of the API that accepts a Job object returned by other APIs such as SubmitJobs. Even though the parameter and return value are of the same type, the Job object returned will have the current status of the job.

Link copied to clipboard
fun getStatusValue(jobName: String, jobId: String): String

Get the status value only for a given job name and id.

Link copied to clipboard

Get the status value for a given job object.

Properties

Link copied to clipboard
Link copied to clipboard
var httpClient: OkHttpClient
Link copied to clipboard
var response: Response<*>? = null