Thanks to all who replied
I was just trying to see if there was a method to reduce the DLYJOB command while it was being executed. I was just anxious to speed up my testing - no other ulterior motive, BUT, I did learn of a few new things to consider
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 rob@xxxxxxxxx
Sent: Thursday, January 05, 2012 8:42 AM
To: Midrange Systems Technical Discussion
Subject: RE: Using the command DLYJOB in a CL program
I'd go with looking at the joblog for when the DLYJOB was issued.
As far as Gary's suggestions go, I've heard of sleep() and I seem to remember using it. But an alternative technique might be to try receiving from a data queue with a time limit. When you're ready, an alternative process can send an entry to the data queue.
Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
http://www.dekko.com
From: "Monnier, Gary" <Gary.Monnier@xxxxxxxxx>
To: Midrange Systems Technical Discussion <midrange-l@xxxxxxxxxxxx>,
Date: 01/04/2012 05:54 PM
Subject: RE: Using the command DLYJOB in a CL program
Sent by: midrange-l-bounces@xxxxxxxxxxxx
Alan,
I've never tried to do what you are proposing but a couple of things come
to mind...
1. Could you use the sleep() function in a separate program instead? You
could then interrupt sleep() with a SIGALRM or kill() and then send a
specific message to the calling program. The calling program (the one now
using DLYJOB) can then take action based upon the returned error message
ID.
2. Maybe a combination of the Change Job Interrupt Status (QWCCJITP) and
Call Job Interrupt Program (QWCJBITP) APIs?
3. Or a combination of both?
Gary Monnier
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Wednesday, January 04, 2012 1:08 PM
To: Midrange Systems Technical Discussion
Subject: RE: Using the command DLYJOB in a CL program
Hi Gary
While the delay is 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 Monnier, Gary
Sent: Wednesday, January 04, 2012 3:10 PM
To: Midrange Systems Technical Discussion
Subject: RE: Using the command DLYJOB in a CL program
Alan,
By changing the timespan do you mean soft coding a value or, while the
delay is occurring?
Gary
-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [
mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Alan Shore
Sent: Wednesday, January 04, 2012 11:51 AM
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.
--
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.