HP OpenVMS Systems

ask the wizard
Content starts here

SUBMIT/REMOTE/NOPRINT?

» close window

The Question is:

 
Hello Wizard,
 
when I invoke a $ submit/remote command on a node .log file is submitted to a
 sys$print. I have a global symbol su*bmit=="submit/noprinter". How can I
 prevent .log file from being submitted to sys$print? I do not want to have a
 .log file printed. I also n
oticed this kind of behavior in previous versions of OpenVMS.
 
Thank you,
 
Saso Tomat
System Manager
SKB banka d.d.
Societe Generale Group
Ljubljana, Slovenia
 


The Answer is :

    SUBMIT/REMOTE is "special" in that it doesn't accept any qualifiers
    that affect the job itself. There are good technical reasons for this,
    and the behaviour is most unlikely to ever change.
 
    The only way to prevent the log file from printing is to block SYS$PRINT
    at the completion of the job. So, for example, your remote procedure
    could define the logical name SYS$PRINT to point to a non-existent
    queue:
 
    	$ DEFINE SYS$PRINT NOSUCHQUEUE
 
    If this logical name exists at the completion of the procedure, the
    job queuing the log file to SYS$PRINT will fail silently.
 
    A useful "trick" for using SUBMIT/REMOTE is to do it in two steps.
    The first remote job just submits the "real" job. This allows you to
    specify all control qualifiers for the job. For example, assuming proxy
    or remote access:
 
    REAL.COM
    $ RUN YOUR_PROGRAM
    $ etc...
    $ EXIT
 
 
    SUBMIT_IT.COM
    $ SUBMIT/QUEUE=YOUR_QUEUE/AFTER=TOMORROW/KEEP/NOPRINT REAL.COM
    $ DEFINE SYS$PRINT NO_SUCH_QUEUE
    $ EXIT
 
 
    $ COPY REAL.COM REMNOD::
    $ COPY SUBMIT_IT.COM REMNOD::
    $ SUBMIT/REMOTE REMNOD::SUBMIT_IT
 
 

answer written or last revised on ( 3-JUL-2002 )

» close window