Thanks for your reply Gary
We also have data areas controlling the time span of DLYJOB in programs, but my question was pertaining to while the delay was happening
Alan Shore
Programmer/Analyst, Direct Response
E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Gary Thompson
Sent: Wednesday, January 04, 2012 3:21 PM
To: Midrange Systems Technical Discussion
Subject: RE: Using the command DLYJOB in a CL program
Alan, we have several "never ending" jobs that use dlyjob and get the delay seconds from a dataarea that is read during the job
Typical pgm flow:
read dataarea
start task loop
do task
delay for dataarea seconds
check if dataarea read should be performed
if dataarea read is due
read dataarea to get seconds
check seconds and endjob if zero
continue task loop
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Wednesday, January 04, 2012 12:51 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Using the command DLYJOB in a CL program
Hi everyone
I am in the process of testing a change that I have made to a CL program
At the moment, the program is on a DLYJOB DLY(300) command
My questions are:-
1. Is there any way of knowing the amount of elapsed time, and therefore the amount of time left?
2. Is there a way of changing this timespan while the program is running?
These are not deal breakers, but while I am waiting for the program to continue (using STRDBG), it seems MUCH longer than 5 minutes have elapsed Alan Shore Programmer/Analyst, Direct Response E:AShore@xxxxxxxx
P:(631) 200-5019
C:(631) 880-8640
"If you're going through Hell, keep going" - Winston Churchill
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
--
This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@xxxxxxxxxxxx To subscribe, unsubscribe, or change list options,
visit:
http://lists.midrange.com/mailman/listinfo/midrange-l
or email: MIDRANGE-L-request@xxxxxxxxxxxx Before posting, please take a moment to review the archives at
http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.