From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: f7344,79e7a80d9510d336 X-Google-Attributes: gidf7344,public X-Google-Thread: 1164f8,79e7a80d9510d336 X-Google-Attributes: gid1164f8,public From: "Dane Maslen" Subject: Re: REQ: Queue control? Date: 1997/10/02 Message-ID: <01bccf0f$c61a4240$ab3566a1@EUSUNOW0443.rec.bp.com>#1/1 X-Deja-AN: 277232542 References: <875744917.16978@dejanews.com> <3432fd7e.10871857@nntp.ix.netcom.com> Organization: BP Group Newsgroups: comp.sys.dec,comp.os.vms Data64 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.