Skip to main content

Problem:

Is there a pause, sleep, or wait command in RM/Cobol?

Resolution:

C$Delay is used to relinquish the CPU for a length of time specified in seconds. Calling C$Delay will allow other programs to run while the original program waits. The amount of delay is not exact. It depends upon the particular machine configuration and the load on the machine.

Calling Sequence:

CALL "C$Delay" USING seconds

"seconds" is a PICTURE 9(n) BINARY, where n can be a digit from 1 to 9. It specifies the length of time, in seconds, to delay. Delays longer than one day are not normally meaningful and should not be used.

    

Old KB# 6122