Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Programming or simulating a PAUSE

Status
Not open for further replies.

BenD

Programmer
Dec 7, 2001
3
NL
Is there any COBOL instruction to make a PAUSE, or a SLEEP time or a WAIT in a program, and this without using an artifical loop, or anyway without uisng processing time ?

For instance, a pause of 60 seconds.

Thx
 
... working with COBOL Micro Focus V 4.1 under UNIX OS (Sinix V5.43)
 
The only method I know of is to call a C program that utilises the sleep command.
 
Could get the system time add XX amount of time to that and keep getting the system time till they match. If you do not like my post feel free to point out your opinion or my errors.
 
I've got now the solution. A simple call to a system command works perfect !

CALL "sleep" USING BY VALUE 120.

(time in seconds).

Thx to all.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top