• Subject: Re: Autostart Job with "Delay/Repeat" (QSYSMSG into a Data Base file !!!)
  • From: david.kahn@xxxxxxxxxxxxxxxxxx
  • Date: Tue, 2 Feb 1999 16:52:49 +0000

Chuck Lewis <CLEWIS@IQUEST.NET> wrote:

>My question is on how to code the CL for Autostart job and how it
>behaves...
>
>If I have a CL that "does its' thing" from PGM to ENDPGM will it
>automatically start again ? If so I CAN put a delay job in for the 5
>minute deal ?

Chuck,

You add an autostart job entry to a subsystem description. The AJE
references a job description which should have request data that calls your
program. See the AJEs in QCTL or QBASE for an example. The request data is
executed once when the subsystem starts. It doesn't restart automatically
after the job ends, abends, or is cancelled.

As an alternative to a repeating 5 minute delay, have you experimented with
a program that does a RCVMSG on the message queue with a wait time of
*MAX? This is a bit slicker as it executes as soon as it's needed and only
when it's needed?

If you want to run an NEP make sure its logging is off otherwise a huge job
log will build up and the program may eventually crash or take a long time
to end when you cancel it manually. An alternative if you want to use
normal job logging for your NEP is or have it submit another copy of itself
and end normally.

Dave Kahn, ABB Steward Ltd.


+---
| This is the Midrange System Mailing List!
| To submit a new message, send your mail to MIDRANGE-L@midrange.com.
| To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com.
| To unsubscribe from this list send email to MIDRANGE-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 ...


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.