Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
HP.com home

HP OpenVMS Systems

ask the wizard
Content starts here

DCL file manipulation, redirection?

» close window

The Question is:

 
Hi, I have 2 questions:
1. I want to do similar to a PURGE on a directory, but instead of deleting
lower versions of files, I want to rename them to another directory. I could
write a DCL command file to do it, but wondered if there is a cleaner way -
I've tried variations on:
a) $ rename *.*;-* [.purged]
b) $ rename /exclude=*.*;0 *.*;* [.purged]
but all attempts return a "no files found" message.
 
2. Is there a straightforward way of directing output to a file AND to the
screen simultaneously?
 
Thanks for any help,
HangTen
 
 


The Answer is :

 
  1: A DCL command procedure would be the typical mechanism.
 
  2: In what context?  A TEE.COM procedure is available for
     use with the DCL PIPE command, for instance.  (Please
     see the HELP PIPE text on V7.1 and later for a copy of
     the TEE.COM procedure.)
 
 

answer written or last revised on ( 28-JUN-2000 )

» close window

 

** About PDF files: The PDF files on this Web site can be read online or printed using Adobe® Acrobat® Reader. If you do not have this software installed on your system, you may download it from Adobe's Web site
Privacy statement Using this site means you accept its terms Feedback to webmaster
© 2008 Hewlett-Packard Development Company, L.P.