Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

The DLYJOB command

693 views
Skip to first unread message

Stephen

unread,
Nov 29, 2002, 6:41:47 AM11/29/02
to
We are trying to use the DLYJOB command in a CL program.

A sample of the code is:

DCL VAR(&TIME) TYPE(*CHAR) LEN(6)

RTVSYSVAL SYSVAL(QTIME) RTNVAR(&TIME)

IF COND(&TIME > '220000') THEN(DO
DLYJOB RSMTIME(235959)
CALL PGM(UPDREXAM)

ENDDO

Can anybody tell me why this delays the job indefinitely on occasions?

Steve

Phil

unread,
Nov 29, 2002, 10:05:03 AM11/29/02
to


"Stephen" <step...@ibo.org> a écrit dans le message de news:
1437b671.02112...@posting.google.com...

Steve,

This program runs past 235959, e.g.. 001020 -- the day after.
(001020 < 220000).
HTH
Phil


Rhona Gallogly

unread,
Nov 29, 2002, 10:06:53 AM11/29/02
to
Steve


Could it be that this RTVSYSVAL QTIME is not run until after 235959
therefore the system sits waiting for another 24 hours !

Jim Barnes

unread,
Nov 29, 2002, 8:20:43 PM11/29/02
to
Could simply be a timing issue. DLYJOB is a monitored command; meaning a
system daemon in the OS has registered this program and activity is
suspended until the RSTIME has past. If you are not lucky (given its a roll
of the dice), you could achieve random results (sometimes it works,
sometimes it does not). A better approach would be to schedule the job
using the system scheduler or put it on a data queue wait until awaken on
demand.

"Stephen" <step...@ibo.org> wrote in message
news:1437b671.02112...@posting.google.com...

highvalue.fr

unread,
Dec 1, 2002, 5:09:08 AM12/1/02
to
using QRCVDTAQ with data queue is better than DLYJOB. You can stop waiting
state whith QSNDDTAQ.

best regards,

f.faure
http://pro.wanadoo.fr/etapes-informatique/

"Jim Barnes" <barn...@swbell.net> a écrit dans le message news:
LnUF9.621$jD3.52...@newssvr30.news.prodigy.com...

0 new messages