waitForJobMessage

fun waitForJobMessage(job: Job, message: String): Boolean

Given a Job document (has jobname/jobid), waits for the given message from the job. This API will poll for the given message once every 3 seconds for at least 1000 times. If the polling interval/duration is NOT sufficient, use waitForMessageCommon method to adjust.

Return

job document

Parameters

job

document of the z/OS job to wait for (see z/OSMF Jobs APIs for details)

message

message string

Throws

error processing wait check request