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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time

Status
Not open for further replies.

Guest_imported

New member
Jan 1, 1970
0
How can i contiously let the time in cobol update while running my program?
i still use the old cobol under DOS environment
thanx
 
Hi Guni,

I'm not sure I fully understand your requirement. I'm not familiar with the compiler you're using, but I'd assume ACCEPT TIME should give you the current time whenever you needed it.

How do you plan on using the time once you have it? How often do you access it? Are you displaying it on a screen and you want to show the spinning 10th of a sec? Is every sec ok?, Every minute, etc.?

Since the only way I know to get it is via ACCEPT (there may be CALLable routines available) you may run into overhead problems if you plan to use it frequently.

Regard, Jack.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top