[an error occurred while processing this directive]

HP OpenVMS Systems

ask the wizard
Content starts here

Appending output to log using DCL?

» close window

The Question is:

 
I need to send the output of multiple commands to the same log file at
different times.  I am able to send the output to a log file by doing:
 
$define sys$output filename.log
 
However, the next time I use it, filename.log is overwritten, not appended.
 
Is there any way to append on the fly in this situation?
 
Thanks
 


The Answer is :

 
  On OpenVMS V7.1, the following commands work quite nicely:
 
    $ PIPE SHOW USER | APPEND/NEW SYS$INPUT X.X
    $ PIPE SHOW SYSTEM | APPEND/NEW SYS$INPUT X.X
 
  Alternatively, a sequence such as the following can be used:
 
    $ OPEN/APPEND FOO X.X
    $ SHOW SYSTEM/OUTPUT=FOO
    $ SHOW LOGICAL SYS$TOPSYS/OUTPUT=FOO
    $ CLOSE FOO
 

answer written or last revised on ( 3-DEC-1998 )

» close window