Guest_imported
New member
- Jan 1, 1970
- 0
Is it possible to make a pause (something like "sleep" in unix) in a cobol program for a specified time?
Thanx!
Thanx!
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.
$ cat ffpitte.cbl
identification division.
program-id. ffpitte.
environment division.
configuration section.
input-output section.
file-control.
data division.
file section.
working-storage section.
77 uSleepMicroSec pic 9(9) comp-5.
procedure division.
0000-main section.
0000-010.
perform varying uSleepMicroSec from 1 by 00010000
until uSleepMicroSec greater than 10000000
display uSleepMicroSec
call "usleep"
using by value uSleepMicroSec
end-call
end-perform.
0000-090.
exit.