× 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.


  • Subject: RE: Whats the best way to run a CL every 30 min
  • From: "Carl Pitcher" <cpitcher@xxxxxxxxxxxxxxxxx>
  • Date: Wed, 29 Sep 1999 15:48:35 -0230
  • Importance: Normal


I may be wrong but jobs running in QCTL automatically have a priority of 10
which may cause performance problems.  I would suggest creating a separate
job q for never ending jobs or use the Qs36evoke job q.

-----Original Message-----
From: owner-rpg400-l@midrange.com [mailto:owner-rpg400-l@midrange.com]On
Behalf Of Kahn, David [JNJFR]
Sent: Wednesday, September 29, 1999 1:42 PM
To: 'RPG400-L@midrange.com'
Subject: RE: Whats the best way to run a CL every 30 min


Silvio,

Here's a very simple program that shows one way of doing the trick.

***************************
    pgm

SbmPgm:
    sbmjob cmd(call myprog)
    dlyjob 1800
    goto   SbmPgm

    endpgm
***************************

In this example the name of the program you want to run periodically is
"myprog". The program to submit myprog should itself be run in batch and
should be active all the time. After submitting myprog it will sleep for 30
minutes (1800 seconds) using virtually no resources, then wake up and start
over. These kind of never ending programs (NEPs) can usually be run quite
happily in the QCTL subsystem. You probably also should run it with a zero
logging level: that way it can remain active indefinitely without building
up a big job log.

You can add a SBMJOB for the submitting program to your startup program
(system value QSTRUPPGM), or start it off with a new autostart job entry in
QCTL so that it will start automatically following an IPL. If the system is
already up and running just submit it to job queue QCTL.

Dave Kahn
Johnson & Johnson International (Ethicon) France
Phone : +33 1 55 00 3180
Email :  dkahn1@jnjfr.jnj.com (work)
           dkahn@cix.co.uk      (home)


-----Message d'origine-----
De: Silvio.Santos@brainag.com [mailto:Silvio.Santos@brainag.com]
Date: 29 September 1999 17:57
À: RPG400-L@midrange.com
Objet: Whats the best way to run a CL every 30 min

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator:
david@midrange.com
+---

+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-L-UNSUB@midrange.com.
| Questions should be directed to the list owner/operator: david@midrange.com
+---


As an Amazon Associate we earn from qualifying purchases.

This thread ...

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.