× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



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.

This thread ...

Follow-Ups:
Replies:

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

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.