- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- DIR / OUT.. append?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:35 AM
тАО03-12-2007 07:35 AM
I want to perform a DIR/OUT=filename.dat command to send the results to a specific file multiple times. However, rather than versioning the "out" file, I want to APPEND to it, so that my results from 2:00, 3:00, 4:00, etc. are all in the same file, same version -- so instead of filename.dat;1, filename.dat;2, filename.dat;3, I only have filename.dat;1, even though I have issued the DIR/OUT command three times.
Is there an easy syntax to do this?
Thanks,
~ Martin
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:43 AM
тАО03-12-2007 07:43 AM
Re: DIR / OUT.. append?
I would recommend a process permanent file for this:
$ crea dir.out ! Make it a 'normal' file.
$ open/appen dir_out dir.out ! Use it
$ dir/out=dir_out *.c
$ dir/out=dir_out *.com
$ close dir_out ! Lose it
$ type dir_out ! Show it.
You can repeat this as often as you like:
$OPEN/APPEN x file
$action/out=x
$CLOS x
hth,
Hein van den Heuvel
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:47 AM
тАО03-12-2007 07:47 AM
SolutionOops too quick. Meant to add that you can also readily interject the command output with DCL script text:
$ open/appen dir_out dir.out
$ write dir_out ""
$ write dir_out "--- Directory Output for ''F$time()' ---"
$ dir /out=dir_out ...
$ close dir_out
Hein.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 07:48 AM
тАО03-12-2007 07:48 AM
Re: DIR / OUT.. append?
I agree with Hein.
Open a process permanent file (using the DCL OPEN command).
Use that filename as the value of the /OUTPUT qualifier.
When you are finished, use the CLOSE command to close the file.
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 09:10 AM
тАО03-12-2007 09:10 AM
Re: DIR / OUT.. append?
~ Martin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 12:28 PM
тАО03-12-2007 12:28 PM
Re: DIR / OUT.. append?
If you want a "one liner" that avoids the OPEN and CLOSE, you can use the PIPE command:
$ DIR/OUT=filename.dat something
$ PIPE DIR something-else | APPEND SYS$PIPE: filename.dat
(somewhat odd that they implemented ">" I/O redirection in PIPE but not ">>", which would have done exactly what you wanted)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-12-2007 08:39 PM
тАО03-12-2007 08:39 PM
Re: DIR / OUT.. append?
$ define sys$output filename.dat
$ dir z.*
$ dir a.*
$ deassign sys$output
When you aren't expecting the files to be appended, it can be confusing.
For your example, Hein's solution is better, since you may have a lot of other output going to sys$output that you do not want in the same file as the directory output.
Jon