<?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 redirect sys$output in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112389#M44124</link>
    <description>Dear VMS Users,&lt;BR /&gt;&lt;BR /&gt;I want to do this in VMS: put the output of this command to fileA_diff file. How to achive that?&lt;BR /&gt;&lt;BR /&gt;difference fileA,c fileA_new.c&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;YE LIU</description>
    <pubDate>Wed, 04 Jun 2008 23:12:05 GMT</pubDate>
    <dc:creator>YE LIU_1</dc:creator>
    <dc:date>2008-06-04T23:12:05Z</dc:date>
    <item>
      <title>redirect sys$output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112389#M44124</link>
      <description>Dear VMS Users,&lt;BR /&gt;&lt;BR /&gt;I want to do this in VMS: put the output of this command to fileA_diff file. How to achive that?&lt;BR /&gt;&lt;BR /&gt;difference fileA,c fileA_new.c&lt;BR /&gt;&lt;BR /&gt;Thanks,&lt;BR /&gt;&lt;BR /&gt;YE LIU</description>
      <pubDate>Wed, 04 Jun 2008 23:12:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112389#M44124</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-04T23:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: redirect sys$output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112390#M44125</link>
      <description>YE,&lt;BR /&gt;&lt;BR /&gt;  There are lots of ways to redirect output. For many commands there is a /OUTPUT qualifier to direct output to a file. DIFFERENCE has one, so the simplest answer is:&lt;BR /&gt;&lt;BR /&gt;$ DIFFERENCE/OUTPUT=fileA_diff fileA.c fileA_new.c&lt;BR /&gt;&lt;BR /&gt;For commands that don't have a /OUTPUT qualifier, try:&lt;BR /&gt;&lt;BR /&gt;$ DEFINE/USER SYS$OUTPUT output_file.txt&lt;BR /&gt;$ command&lt;BR /&gt;&lt;BR /&gt;or&lt;BR /&gt;&lt;BR /&gt;$ PIPE command &amp;gt; output_file.txt&lt;BR /&gt;&lt;BR /&gt;or (if you want to capture the output of several commands)&lt;BR /&gt;&lt;BR /&gt;$ @TT/OUTPUT=output_file.txt&lt;BR /&gt;_$ command&lt;BR /&gt;_$ another command&lt;BR /&gt;_$ etc...&lt;BR /&gt;_$ EXIT&lt;BR /&gt;$ TYPE output_file.txt&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 04 Jun 2008 23:30:00 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112390#M44125</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2008-06-04T23:30:00Z</dc:date>
    </item>
    <item>
      <title>Re: redirect sys$output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112391#M44126</link>
      <description>Redirection is a Unix solution, and doesn't work quite the same (or quite as well) on OpenVMS.  And it doesn't necessarily lend itself quite as well to Unix-style solutions.&lt;BR /&gt;&lt;BR /&gt;Redirection or the parsing of command output is often not a good solution, though (as mentioned in the previous reply) it is often feasible.  Its not good because the formats of the commands can potentially change.&lt;BR /&gt;&lt;BR /&gt;For the DCL command verb in this case, and many others, the command has an /OUTPUT qualifier.  DIFFERENCES /OUTPUT.  As was mentioned.  HELP DIFFERENCES can provide you with substantial information, and most DCL verbs have on-line help text at least on par with and sometimes rather better than man pages.&lt;BR /&gt;&lt;BR /&gt;I'd suggest a quick tour through the OpenVMS User's Guide, as that can provide some insight into how OpenVMS and DCL works.&lt;BR /&gt;&lt;BR /&gt;So what are you up to here with the DIFFERENCES command itself?&lt;BR /&gt;</description>
      <pubDate>Thu, 05 Jun 2008 01:38:21 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112391#M44126</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2008-06-05T01:38:21Z</dc:date>
    </item>
    <item>
      <title>Re: redirect sys$output</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112392#M44127</link>
      <description>thanks</description>
      <pubDate>Wed, 18 Jun 2008 14:41:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/redirect-sys-output/m-p/5112392#M44127</guid>
      <dc:creator>YE LIU_1</dc:creator>
      <dc:date>2008-06-18T14:41:33Z</dc:date>
    </item>
  </channel>
</rss>

