Usenet comp.sys.dec (1990-2013)
 help / color / mirror / Atom feed
From: "Dane Maslen" <maslende@bp.com>
Subject: Re: REQ:  Queue control?
Date: 1997/10/02	[thread overview]
Message-ID: <01bccf0f$c61a4240$ab3566a1@EUSUNOW0443.rec.bp.com> (raw)
In-Reply-To: 3432fd7e.10871857@nntp.ix.netcom.com


Data64 <Data64@usa.net> wrote in article
<3432fd7e.10871857@nntp.ix.netcom.com>...
> On Wed, 01 Oct 1997 17:36:30 -0600, sapporo_guy@usa.net wrote:
> 
> >My nightly batch queue creates tons of .log files from our automated
> >system, all of which print wasting TONS of paper.
> >
> >I'd submit jobs  /NOPRINT , etc, but the system this crud comes from
> >doesn't have an OPTION for submitting this stuff from command line --
> >it's all menu driven & the vendor states the ONLY way they can help me
> >change this stuff is to make a change IN THE COMPILED CODE!!!
> >
> >What i'd LIKE to do is Stop the queue & run a job that looks at my
queue,
> >finds anything that's   .LOG  and DELETEs the entry.  However, my DCL
> >needs work.
> >
> The simplest method would be to define a logical print queue that is
> not mapped to any printer device. When the batch jobs execute, the
> Login.com should make the logical SYS$PRINT point to this logical
> print que. This would cause all the unwanted print entries to get
> submitted to this logical print que. Then it is just a matter of
> deleting the print entries.   
> 
> BTW, I have never tried running a batch job with SYS$PRINT pointing to
> a null string (" "). You might want to try that.

Defining SYS$PRINT to be anything than isn't a valid queue will quite
happily consign the batch job logs to the bit bucket.

Depending on the exact requirements, one of the following might be the
correct approach:

a) Define SYS$PRINT in the system logical name table.  This will of course
affect all batch jobs unless users redefine it themselves.

b) Define SYS$PRINT in the process logical name table during login.  If all
the batch jobs in question run as the same username, this can be done in
that user's LOGIN.COM.  If the batch jobs run as various usernames but all
on the same batch queue, it could be done conditionally in SYLOGIN, e.g.

$ IF F$GETQUI("DISPLAY_JOB","QUEUE_NAME",,"THIS_JOB") .EQS. "..."
$	THEN
$	DEFINE SYS$PRINT NL:
$ ENDIF

where you replace "..." by the appropriate queue name of course.
-- 
Dane Maslen

E-mail: maslende@bp.com

My views are my own and no-one else's.





  reply	other threads:[~1997-10-02  4:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-10-01  4:00 REQ: Queue control? sapporo_guy
1997-10-01  4:00 ` Mark D. Schuster
1997-10-02  4:00   ` Robert Koehler
1997-10-02  4:00 ` Data64
1997-10-02  4:00   ` Dane Maslen [this message]
1997-10-02  4:00   ` Ed Wilts
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox