Previous Topic: Standard Commands

Next Topic: ADDRESS Environment Descriptions


SLEEP REXX Command—Wait for a Specified Period

The SLEEP command suspends the REXX process until the specified period elapses.

This command has the following format:

SLEEP nnnnn[.nn]
nnnnn[.nn]

Specifies the period in seconds for which the REXX process is suspended.

Range: 0 through 86400 (24 hours)

Example: You want to suspend the process for half a second and specify the following command:

SLEEP 0.5

The command can return one of the following codes:

0

Indicates that the waiting period has elapsed

-200

Indicates invalid specification.