Anonymous user
DELAY.REX: Difference between revisions
m
added a comment concerning fractional seconds.
m (→{{header|REXX}}: updated code to use a return code of 1 if HALTed.) |
m (added a comment concerning fractional seconds.) |
||
(One intermediate revision by the same user not shown) | |||
Line 16:
<br>Note: when PC/REXX or Personal REXX are used, those REXXes already have a built-in function (BIF), so the '''delay''' subroutine (below) will never be executed, but the REXX '''DELAY''' BIF will be used instead.
=={{header|REXX}}==
<lang rexx> select▼
▲ select
when !cms then @cpsleep n "SEC" /*Is this CMS? Use CP SLEEP. */
when !tso then call sleep n /*Is this TSO? Use SLEEP cmd. */
Line 73 ⟶ 36:
halt: return 1 /*return a zero value (if a function).*/
/*══════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════════*/
|