Re: Microfocus Cobol "SLEEP" routine



"C C" <someone@xxxxxxxxxxxxxxx> wrote in message
news:yAh2i.4627$UU.2661@xxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hello.

Is there a way in MF Cobol to pause program execution (sleep) for, let's
say, 5 minutes??? My workaround is to call the AIX command "sleep 300".
I need a routine in Cobol itself so I may vary the time to pause in some
programs.

Thanks in advance.



Not that I know of.

I use

call "system" using ws-sleep-call


Where ws-sleep-call is defined as

01 ws-mss-sleep-call.
03 pic x(6) value "sleep ".
03 ws-mss-sleep pic 9(15).999.
03 pic x value x"00".

Works for me.

--
Steve



.



Relevant Pages

  • Re: How to let a COBOL program sleep 5 seconds
    ... COBOL does not include a "sleep" function up to and including COBOL-85. ... have to change the environment or "sleep" routine. ... Notice that in the worst case scenario the system dependent "sleep" ...
    (comp.lang.cobol)
  • Re: Microfocus Cobol "SLEEP" routine
    ... Is there a way in MF Cobol to pause program execution for, ... My workaround is to call the AIX command "sleep 300". ...
    (comp.lang.cobol)
  • Re: Microfocus Cobol "SLEEP" routine
    ... Is there a way in MF Cobol to pause program execution (sleep) for, ... My workaround is to call the AIX command "sleep ...
    (comp.lang.cobol)
  • Re: Microfocus Cobol "SLEEP" routine
    ... sessions experience a shift on their screen. ... Is there a way in MF Cobol to pause program execution for, ...
    (comp.lang.cobol)
  • Re: Microfocus Cobol "SLEEP" routine
    ... Is there a way in MF Cobol to pause program execution for, ... My workaround is to call the AIX command "sleep 300". ...
    (comp.lang.cobol)