<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: DIR / OUT.. append? in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033412#M35623</link>
    <description>&lt;BR /&gt;Oops too quick. Meant to add that you can also readily interject the command output with DCL script text:&lt;BR /&gt;&lt;BR /&gt;$ open/appen dir_out dir.out&lt;BR /&gt;$ write dir_out ""&lt;BR /&gt;$ write dir_out "--- Directory Output for ''F$time()' ---"&lt;BR /&gt;$ dir /out=dir_out ...&lt;BR /&gt;$ close dir_out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
    <pubDate>Mon, 12 Mar 2007 14:47:27 GMT</pubDate>
    <dc:creator>Hein van den Heuvel</dc:creator>
    <dc:date>2007-03-12T14:47:27Z</dc:date>
    <item>
      <title>DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033410#M35621</link>
      <description>Hello - &lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Is there an easy syntax to do this?&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;~ Martin</description>
      <pubDate>Mon, 12 Mar 2007 14:35:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033410#M35621</guid>
      <dc:creator>Martin Slimmer</dc:creator>
      <dc:date>2007-03-12T14:35:38Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033411#M35622</link>
      <description>&lt;BR /&gt;&lt;BR /&gt;I would recommend a process permanent file for this:&lt;BR /&gt;&lt;BR /&gt;$ crea dir.out ! Make it a 'normal' file.&lt;BR /&gt;$ open/appen dir_out dir.out ! Use it&lt;BR /&gt;$ dir/out=dir_out *.c&lt;BR /&gt;$ dir/out=dir_out *.com&lt;BR /&gt;$ close dir_out ! Lose it&lt;BR /&gt;$ type dir_out ! Show it.&lt;BR /&gt;&lt;BR /&gt;You can repeat this as often as you like:&lt;BR /&gt;&lt;BR /&gt;$OPEN/APPEN x file&lt;BR /&gt;$action/out=x&lt;BR /&gt;$CLOS x&lt;BR /&gt;&lt;BR /&gt;hth,&lt;BR /&gt;Hein van den Heuvel&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:43:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033411#M35622</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-12T14:43:09Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033412#M35623</link>
      <description>&lt;BR /&gt;Oops too quick. Meant to add that you can also readily interject the command output with DCL script text:&lt;BR /&gt;&lt;BR /&gt;$ open/appen dir_out dir.out&lt;BR /&gt;$ write dir_out ""&lt;BR /&gt;$ write dir_out "--- Directory Output for ''F$time()' ---"&lt;BR /&gt;$ dir /out=dir_out ...&lt;BR /&gt;$ close dir_out&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Hein.&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:47:27 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033412#M35623</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2007-03-12T14:47:27Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033413#M35624</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;I agree with Hein.&lt;BR /&gt;&lt;BR /&gt;Open a process permanent file (using the DCL OPEN command).&lt;BR /&gt;&lt;BR /&gt;Use that filename as the value of the /OUTPUT qualifier.&lt;BR /&gt;&lt;BR /&gt;When you are finished, use the CLOSE command to close the file.&lt;BR /&gt;&lt;BR /&gt;- Bob Gezelter, &lt;A href="http://www.rlgsc.com" target="_blank"&gt;http://www.rlgsc.com&lt;/A&gt;</description>
      <pubDate>Mon, 12 Mar 2007 14:48:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033413#M35624</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2007-03-12T14:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033414#M35625</link>
      <description>Thanks -- your two answers are what I was looking for!&lt;BR /&gt;&lt;BR /&gt;~ Martin</description>
      <pubDate>Mon, 12 Mar 2007 16:10:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033414#M35625</guid>
      <dc:creator>Martin Slimmer</dc:creator>
      <dc:date>2007-03-12T16:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033415#M35626</link>
      <description>Martin,&lt;BR /&gt;&lt;BR /&gt;  If you want a "one liner" that avoids the OPEN and CLOSE, you can use the PIPE command:&lt;BR /&gt;&lt;BR /&gt;$ DIR/OUT=filename.dat something&lt;BR /&gt;$ PIPE DIR something-else | APPEND SYS$PIPE: filename.dat&lt;BR /&gt;&lt;BR /&gt;(somewhat odd that they implemented "&amp;gt;" I/O redirection in PIPE but not "&amp;gt;&amp;gt;", which would have done exactly what you wanted)&lt;BR /&gt;</description>
      <pubDate>Mon, 12 Mar 2007 19:28:24 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033415#M35626</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2007-03-12T19:28:24Z</dc:date>
    </item>
    <item>
      <title>Re: DIR / OUT.. append?</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033416#M35627</link>
      <description>Because sys$output is a process permanent file, the following also causes the output from multiple runs of directory to be appended to the same file.&lt;BR /&gt;&lt;BR /&gt;$ define sys$output filename.dat&lt;BR /&gt;$ dir z.*&lt;BR /&gt;$ dir a.*&lt;BR /&gt;$ deassign sys$output&lt;BR /&gt;&lt;BR /&gt;When you aren't expecting the files to be appended, it can be confusing.&lt;BR /&gt;&lt;BR /&gt;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.&lt;BR /&gt;&lt;BR /&gt;Jon&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Tue, 13 Mar 2007 03:39:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/dir-out-append/m-p/5033416#M35627</guid>
      <dc:creator>Jon Pinkley</dc:creator>
      <dc:date>2007-03-13T03:39:08Z</dc:date>
    </item>
  </channel>
</rss>

