Hmm, well, I actually did write a response but our web-mail client seems
to have kept all the text... The text you see is added to all outgoing
mail totally out of my control.
Back to my answer:

You have several options to accomplish what you need:

1. Use a simple delay in a loop in your program.
C-pseudo code

do {
...stuff...
system("DLYJOB (60)");
} while (break_condition)

2. Use a time out on a data queue. This is nice since you can control
the program termination externally, by sending something via the data
queue and since it's consuming close to zero system resources.

timeout = 60;
do {
...stuff...
ReceiveFromDataqueue (myqueue, mydata, timeout);
} while (mydata <> "BREAK")

3. As suggested you can have another job submitting your program every
60 seconds, or you can do it from your program, but both options are
inefficient from a system point of view.


All these options would in practice require you to execute your program
in a new job queue, or else your program would hog QBATCH all day long
which normally is not accepted.


Joakim
------------------------------------
Svensson, Joakim
Capgemini, Sweden
Certified Enterprise Architect / Principal
Joakim.Svensson@xxxxxxxxxxxxx
Sweden
------------------------------------

-----Original Message-----
From: c400-l-bounces+joakim.svensson=capgemini.com@xxxxxxxxxxxx
[mailto:c400-l-bounces+joakim.svensson=capgemini.com@xxxxxxxxxxxx] On
Behalf Of Peter Grace
Sent: den 16 december 2004 20:07
To: C programming iSeries / AS400
Subject: Re: [C400-L] What is a technique to start a program
periodically?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

It's a new kind of e-mail where only the person it's addressed to can
actually see the message!

OK, maybe not.  But it makes you wonder! <puts on tinfoil hat>

Pete



Jevgeni Astanovski wrote:
| Hm-m-m....
| Does it really contain anything confidential?

/------------------------------------------------\
|Peter Grace                  Phone: 484-875-9462
|Technology Analyst             Fax: 484-875-9461
|RealTime Technologies, Inc.
|835 Springdale Drive, Suite 101
|Exton, PA  19341
\------------------------------------------------/

This message contains information that may be privileged or confidential and is 
the property of the Capgemini Group. It is intended only for the person to whom 
it is addressed. If you are not the intended recipient,  you are not authorized 
to read, print, retain, copy, disseminate,  distribute, or use this message or 
any part thereof. If you receive this  message in error, please notify the 
sender immediately and delete all  copies of this message.



This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2019 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].