Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
I'm not sure how z/OS sleeps (or if it even can), but on a good OS like UNIX or Windows when a program calls the OS's sleep API, that thread is just suspended for the amount of time specified and control is given to other programs. Why would z/OS be any different?rexxhead said:Interactive processes should never 'sleep'. It's unfair to others who share the system's resources. What do you think would happen to response time if everyone did this?
/* REXX */
/* Sleeps for the specified number of seconds. */
/********1*********2*********3*********4*********5*********6*********7*/
SIGNAL ON ERROR
PARSE ARG seconds
IF seconds = "" THEN
CALL BadSyntax
IF DATATYPE( seconds, 'W' ) == 0 THEN
DO
SAY "ERROR! seconds parameter must be a whole number!"
CALL BadSyntax
END
CALL SYSCALLS 'ON'
ADDRESS SYSCALL
"sleep" seconds
CALL SYSCALLS 'OFF'
EXIT 0
/** BadSyntax()
* Prints the correct syntax...
*/
BadSyntax: PROCEDURE
SAY "Syntax error!"
SAY ""
SAY "Syntax: SLEEP( seconds )"
CALL SYSCALLS 'OFF'
EXIT 1
/** ERROR
* Called when an ERROR signal occurs.
*/
ERROR:
SAY "ERROR! Killing Rexx script."
CALL SYSCALLS 'OFF'
EXIT 1