ADDRESS SYSCALL "SLEEP" x



IBM's Command List programming language & Restructured Extended Executor

ADDRESS SYSCALL "SLEEP" x

Postby Steve Coalbran » Fri Oct 07, 2016 10:37 am

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:
Steve
User avatar
Steve Coalbran
 
Posts: 94
Joined: Wed Apr 06, 2011 11:49 am
Location: Stockholm, Sweden
Has thanked: 4 times
Been thanked: 1 time

Re: ADDRESS SYSCALL "SLEEP" x

 

Re: ADDRESS SYSCALL "SLEEP" x

Postby BillyBoyo » Fri Oct 07, 2016 11:02 am

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).

These users thanked the author BillyBoyo for the post:
Steve Coalbran (Fri Oct 07, 2016 11:14 am)
BillyBoyo
Global moderator
 
Posts: 3759
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 256 times

Re: ADDRESS SYSCALL "SLEEP" x

Postby Steve Coalbran » Fri Oct 07, 2016 11:13 am

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!
Steve
User avatar
Steve Coalbran
 
Posts: 94
Joined: Wed Apr 06, 2011 11:49 am
Location: Stockholm, Sweden
Has thanked: 4 times
Been thanked: 1 time

Re: Mainframe Playground Education Initiative

Postby BillyBoyo » Fri Oct 07, 2016 4:30 pm

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 :-( .
BillyBoyo
Global moderator
 
Posts: 3759
Joined: Tue Jan 25, 2011 12:02 am
Has thanked: 22 times
Been thanked: 256 times

Re: ADDRESS SYSCALL "SLEEP" x

Postby enrico-sorichetti » Fri Oct 07, 2016 6:33 pm

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
cheers
enrico
When I tell somebody to RTFM or STFW I usually have the page open in another tab/window of my browser,
so that I am sure that the information requested can be reached with a very small effort
enrico-sorichetti
Global moderator
 
Posts: 2519
Joined: Fri Apr 18, 2008 11:25 pm
Has thanked: 0 time
Been thanked: 120 times

Re: ADDRESS SYSCALL "SLEEP" x

Postby Steve Coalbran » Mon Oct 17, 2016 6:28 pm

I replaced the potential
ADDRESS SYSCALL "sleep" 1/10
with a
ADDRESS ISPEXEC "CONTROL DISPLAY REFRESH"
:D
No melt-down in the CPU. :lol:
Steve
User avatar
Steve Coalbran
 
Posts: 94
Joined: Wed Apr 06, 2011 11:49 am
Location: Stockholm, Sweden
Has thanked: 4 times
Been thanked: 1 time


Return to CLIST & REXX

 


  • Related topics
    Replies
    Views
    Last post