Page 1 of 1

ADDRESS SYSCALL "SLEEP" x

PostPosted: Fri Oct 07, 2016 10:37 am
by Steve Coalbran
Is there a way under TSO/ISPF to get the unix SLEEP command to sleep for less than one second?
I tried various methods but no joy.
It can be that this implementation of the SLEEP command does not support subsecond invocation? :cry:

Re: ADDRESS SYSCALL "SLEEP" x

PostPosted: Fri Oct 07, 2016 11:02 am
by BillyBoyo
I think the "normal" sleep is only in an integer number of seconds (which can be expressed as minutes or hours). Some implementations allow the "number of seconds" to be fractional, but probably not OMVS. "man sleep" should say exactly (or implicitly).

Re: ADDRESS SYSCALL "SLEEP" x

PostPosted: Fri Oct 07, 2016 11:13 am
by Steve Coalbran
I did the RTFM on the manual as SA23-2280-02 but it was not precise as to whether subseconds were allowed.
I see that under certain implementations (e.g. bsh) it is.
I will try something else.
I am guessing that this could be done in assembler using ECB but my ASM sadly lapsed many years ago!

Re: Mainframe Playground Education Initiative

PostPosted: Fri Oct 07, 2016 4:30 pm
by BillyBoyo
Reading the Fine Manual, I'd say for sure it has to be integers, only because that is "normal" behaviour, and no hint of doing otherwise. Nothing useful from searching for "micro" or "milli" or anything associated :-( .

Re: ADDRESS SYSCALL "SLEEP" x

PostPosted: Fri Oct 07, 2016 6:33 pm
by enrico-sorichetti
issuing man sleep on apple and on 3 different linux distributions
reported for all ...

NAME
     sleep -- suspend execution for an interval of time

SYNOPSIS
     sleep seconds

DESCRIPTION
     The sleep command suspends execution for a minimum of seconds.
 


so I guess that issuing the man sleep under Unix System Services would return the same

Re: ADDRESS SYSCALL "SLEEP" x

PostPosted: Mon Oct 17, 2016 6:28 pm
by Steve Coalbran
I replaced the potential
ADDRESS SYSCALL "sleep" 1/10
with a
ADDRESS ISPEXEC "CONTROL DISPLAY REFRESH"
:D
No melt-down in the CPU. :lol: