z/OS Using REXX and z/OS UNIX System Services
Previous topic | Next topic | Contents | Contact z/OS | Library | PDF


sleep()

z/OS Using REXX and z/OS UNIX System Services
SA23-2283-00

Read syntax diagramSkip visual syntax diagram
>>-sleep--(--seconds--)----------------------------------------><

Function

Places the process in a signals-enabled wait, and returns after the wait expires. If a signal interrupts the wait, the function returns the number of seconds remaining for the wait, otherwise it returns 0.

Parameters

seconds
A positive whole number for the number of seconds to sleep

Example

To wait 5 seconds:
call sleep 5   

Go to the previous page Go to the next page




Copyright IBM Corporation 1990, 2014