Valid in: | DATA step, PROC SQL, and SCL |
/* Incorrect use of function arguments */ dmsrvJobStatus('jobid'); /* Localhost is used for the host */
dmsrvJobStatus('jobid', '', 21036, 20, 5); /* Correct */
dmsrvJobStatus('jobid', dmsrvhostname, 21036, 20, 5);
/* Incorrect use of function arguments */ dmsrvJobStatus('jobid'); /* Port 21036 or 21037 is used */
dmsrvJobStatus('jobid', dmsrvhostname, 0, 20, 5); /* Correct */
dmsrvJobStatus('jobid', dmsrvhostname, 21036, 20, 5);
-1 | returns status information about when the job is finished. Return values are 0 (job completed successfully) or 1 (job failed). This value invalidates the interval argument. |
0 | returns status information immediately. Return values are 0 (job completed successfully), 1 (job failed), or 2 (job running). This value invalidates the interval argument. |
greater-than-zero | specifies a time limit for the interval argument. If the job is still running after the time-out value, another value is returned only when the job is finished. |