[Date Prev][Date Next][Thread Prev][Thread Next]
[Author Index] [Date Index] [Thread Index]
[SQR-USERS Info] [SQRUG Home Page]

Re: How to PAUSE a SQR?



The command would look something like the following:

             CALL SYSTEM USING 'sleep 60' #sleep_status

The would put the program to sleep for 60 seconds. On regaining control if
the value of #sleep_status = 0 then the command was successful and if >0
there was an error.

You should check "man sleep" to confirm usage for your specific variant of
Unix.
-----Original Message-----
From: Rick_Creel@aoncons.com [mailto:Rick_Creel@aoncons.com]
Sent: Friday, April 07, 2000 01:06 PM
To: RHuber@imf.org
Subject: Re: How to PAUSE a SQR?


I have never issued a system command to Unix and therefore don't know how to
do
it, or the syntax.
Could you please give me an example of how you do this?  I would appreciate
your
help!!

Thanks!


---------------------- Forwarded by Rick Creel/IT/Aon Consulting on
04/07/2000
01:04 PM ---------------------------


"Huber, Robert" <RHuber@IMF.ORG> on 04/07/2000 12:44:27 PM

Please respond to sqr-users@list.iex.net

To:   SQR-USERS@list.iex.net
cc:    (bcc: Rick Creel/IT/Aon Consulting)

Subject:  Re: How to PAUSE a SQR?



Actually you supplied your own answer. Issue a system command to Unix to
sleep! In-point-of-fact I do exactly that and it works just as you might
expect.


-----Original Message-----
From: Rick_Creel@AONCONS.COM [mailto:Rick_Creel@AONCONS.COM]
Sent: Friday, April 07, 2000 10:21 AM
To: SQR-USERS@list.iex.net
Subject: How to PAUSE a SQR?


Is there a SQR command that will cause the program to sleep or wait for a
specified number of seconds?
For example, in UNIX shell script you can say   SLEEP 10   and this will
cause
the program to stop for 10 seconds.
Is there a similar command in SQR?


Thanks