|
I have never tried this, but could you run a c/l command in your rpg to do the dlyjob command? Rather "messy" and it may not work - So You could use a dataq, your rpg could submit a c/l with the dlyjob that writes to a dataq, and then checks for something to end (you really don't want a NEP running do you) and then your rpg program could receive the dataq with a wait time, if you so desire, or leave it at zero and let the c/l do the write to dataq with it's dlyjob. HTH Mark -----Original Message----- From: rpg400-l-admin@midrange.com [mailto:rpg400-l-admin@midrange.com]On Behalf Of Smith, Nelson Sent: Wednesday, February 27, 2002 8:32 AM To: rpg400-l@midrange.com Subject: Timing loop What's the best way to implement a timing loop in RPG without creating another CFINT that would eat up the system? i.e. I would like to wait 5 seconds and retry something, but I don't want to be testing the time every .000001 microseconds (or however fast a loop would execute) to see if 5 seconds has passed or not. Nelson Smith, CDP, CCP IBM Certified Specialist AS400 RPG IV Programmer (727) 431-8243 (800) 284-2006 This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 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].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.