11.07.2015 Views

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

Caché ObjectScript Reference - InterSystems Documentation

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

JOBParameterprincipal-outputDescriptionPrincipal output device for the process. The default is thedevice you specify for principal-input.UNIX : If you do not specify either device, the process usesthe default principal device for processes started with theJOB command, which is /dev/null. To make the principalinput or output device default to your current device insteadof /dev/null, use the $ZUTIL(69,4) function.VMS: If you do not specify either device, the process usesyour current principal input and output devices.VMS: If the jobbed process is using your current device andyou log off, the jobbed process will be unable to issue JOBcommands to start new processes. If you do not require anyI/O, specify the null device: NL:timeoutThe number of seconds to wait for the jobbed process to start before timing out and abortingthe job. The preceding colon is required. You must specify timeout as an integer value orexpression. If a jobbed process times out, <strong>Caché</strong> aborts the process and sets $TEST to FALSE(0). Execution then proceeds to the next command in the calling routine; no error messageis issued.Timeout can only be specified for a local process.ExamplesThis example starts the monitor routine in the background. If the process does not start in 20seconds, <strong>Caché</strong> sets $TEST to FALSE (0).JOB ^monitor::20WRITE $TESTThis example starts execution of the monitor routine at the line label named Disp.JOB Disp^monitorThe following example starts the Add routine, passing it the value in variable num1, the value8, and the value resulting from the expression a+2. The Add routine must contain a formalparameter list that includes at least three parameters.JOB ^Add(num1,8,a+2)<strong>Caché</strong> <strong>ObjectScript</strong> <strong>Reference</strong> 63

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!