× 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: Question on determining job(s)
  • From: "Brendan Bispham" <midrangel@xxxxxxxxxxxxxxxxxx>
  • Date: Wed, 17 Nov 1999 14:40:32 -0000
  • Importance: Normal

Chuck,

If you use WRKJOB DUPJOBOPT(*MSG) and RCVMSG *DIAG - this will tell you the
qualified job name in the message data.

But consider trying it from a different angle; at the end of the daily run,
list all the reports in the output queue(s) and duplicate them. Then it
wouldnt matter about job names, and you wouldnt have to change the program
every time the dayend, monthend etc. is changed.

The only disadvantage to this is that it assumes that all the reports from
the previous day are gone - but this must be the case, or your WRKJOB
command would fail for the same reasons.

Another way, always useful in changing third party applications, is to use
the job routing entries. This allows you to call your own program just
before the job is run. A simple example fo this would be to submit a new job
in the same job queue with a low priority, which has the job name as
parameters:

Job INVOICE starts
        Your program is a routing entry, runs command:
        SBMJOB CMD(DUPSPLF JOB(THISJOB/THISUSER/THISJOBNAME) JOBQ(DAYEND) 
JOBPTY(9)
        Your program then rrts the job to QCMD and carries on as normal.

The new job will start when the first one has finished (it depends on how
you have set up your job queues) and will always have the correct job name.
It will work with dayend or monthend, and doesnt matter how many changes you
make.


Brendan Bispham

Black and Blue Software Engineering
http://www.black-and-blue.com

~
~ That WOULD be nice AND make the most sense, except that it is a 3rd party
~ product...
~
~ Rob Berendt wrote:
~
~ > The simple way to do this is have it be part of the same job.
~

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