How to “sleep” in mainframe COBOL?

血红的双手。 提交于 2019-12-30 16:20:33

问题


I think I'm using Enterprise COBOL for z/OS.

What's a technique to emulate the functionality of, for example, the standard C library's sleep() function?


回答1:


Probably the easiest method is to use the Language Environment callable service CEE3DLY or CEEDLYM.




回答2:


I don't know whether you have found your answer or not.

There is an IBM program that enables the machine to sleep ... or to wait : its name is ILBOWAT0.

Here is the link of a very good example on how you can code it : http://www.mvsforums.com/helpboards/viewtopic.php?t=2008&highlight=delay

In this example, WAIT-TIME is in seconds.



来源:https://stackoverflow.com/questions/11786621/how-to-sleep-in-mainframe-cobol

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!