I don't believe that there is an MVS service to wait for 1 cpu second.

There is a service to allow notification after a task uses one CPU second,
but, if you wait on that ECB you are unlikely to ever wake up unless you have
IRB's scheduled.

The STIMER macro with the REAL or TASK option allows you to specify an exit to be driven when the interval expires. REAL is real time, TASK is CPU time used by the task issuing the STIMER. Normally your task would continue executing after issuing the STIMER, and it will be interrupted and sent to the exit when the interval expires. You could code your main task to wait on an ECB and code the exit to POST the ECB, but for TASK that makes no sense since the task will not be accumulating CPU time and the interval will never expire. Unless, as Binyamin said, you have IRBs or SRBs being driven in your task for other asynchronous interrupts.
--
Bruce A. Black
Senior Software Developer for FDR
Innovation Data Processing 973-890-7300
personal: [EMAIL PROTECTED]
sales info: [EMAIL PROTECTED]
tech support: [EMAIL PROTECTED]
web: www.innovationdp.fdr.com

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO
Search the archives at http://bama.ua.edu/archives/ibm-main.html

Reply via email to