|
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 +---
As an Amazon Associate we earn from qualifying purchases.
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.