<?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: search with redefined sys$output =&amp;gt; NOSUCHDEV in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883014#M35012</link>
    <description>Sounds like another case where search's need to know the output device is causing trouble.  IIRC, at one time it didn't work at all with PIPE out, but they fixed it so it mostly works now.&lt;BR /&gt;&lt;BR /&gt;If wants to know the device type so it can highlight the matched text properly.</description>
    <pubDate>Thu, 19 Oct 2006 13:31:22 GMT</pubDate>
    <dc:creator>David Jones_21</dc:creator>
    <dc:date>2006-10-19T13:31:22Z</dc:date>
    <item>
      <title>search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883004#M35002</link>
      <description>&lt;!--!*#--&gt;Hello everybody,&lt;BR /&gt;&lt;BR /&gt;I've just found a strange problem with the search command.&lt;BR /&gt;&lt;BR /&gt;Running this sample script:&lt;BR /&gt;&lt;BR /&gt;$ on error then goto end&lt;BR /&gt;$ open/write out sys$login:out.lis&lt;BR /&gt;$ define sys$output out:&lt;BR /&gt;$ search sys$login:login.com nothing&lt;BR /&gt;$&lt;BR /&gt;$ end: &lt;BR /&gt;$ close out&lt;BR /&gt;$exit&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;produce the error status: &lt;BR /&gt;%SYSTEM-F-NOSUCHDEV, no such device available&lt;BR /&gt;&lt;BR /&gt;This only seem to happen with the “search" command, any other command I'have tried has succeeded&lt;BR /&gt;&lt;BR /&gt;Any advice?&lt;BR /&gt;&lt;BR /&gt;(tested on VMS 7.3-2)</description>
      <pubDate>Thu, 19 Oct 2006 06:45:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883004#M35002</guid>
      <dc:creator>Gilles Pion</dc:creator>
      <dc:date>2006-10-19T06:45:05Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883005#M35003</link>
      <description>Hi Gilles,&lt;BR /&gt;&lt;BR /&gt;If you define sys$output to "out:" then&lt;BR /&gt;VMS tries to open a device called "out:" because&lt;BR /&gt;of the colon. &lt;BR /&gt;&lt;BR /&gt;The above "$ open/write out" defines a file&lt;BR /&gt;handle, not a logical device.&lt;BR /&gt;&lt;BR /&gt;In short. use "$search/output=sys$login:out.lis"&lt;BR /&gt;or "$ define sys$output sys$login:out.lis"&lt;BR /&gt;&lt;BR /&gt;LG&lt;BR /&gt;Albert</description>
      <pubDate>Thu, 19 Oct 2006 07:16:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883005#M35003</guid>
      <dc:creator>Albert Öttl</dc:creator>
      <dc:date>2006-10-19T07:16:45Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883006#M35004</link>
      <description>Gilles,&lt;BR /&gt;&lt;BR /&gt;At first glance (I am running for a meeting), I would agree with Albert's suggestion: remove the ":" from the /OUTPUT qualifier and the logical name definition.&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>Thu, 19 Oct 2006 07:25:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883006#M35004</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-10-19T07:25:46Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883007#M35005</link>
      <description>It seems that using "define sys$output &lt;FILENAME&gt;" works&lt;BR /&gt;&lt;BR /&gt;I did'nt try at first because I thought that , in this case, each commands in the script would have opened a new version of the output file, but dcl seem to be smart enough not to behave this way.&lt;BR /&gt;&lt;BR /&gt;But what stills puzzle me is that, when using the original approach, other command than "search" (say "dir" for example) works as expected (output correctly redirected to out.lis)&lt;BR /&gt;&lt;BR /&gt;Note also that this script is a simple example,  using /output= is not an option in reality because the actual script execute many commands in sequence and most of them does not support the /output" qualifier.&lt;BR /&gt;&lt;BR /&gt;&lt;/FILENAME&gt;</description>
      <pubDate>Thu, 19 Oct 2006 08:35:58 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883007#M35005</guid>
      <dc:creator>Gilles Pion</dc:creator>
      <dc:date>2006-10-19T08:35:58Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883008#M35006</link>
      <description>For the Vms commands not allowing /output, you can do&lt;BR /&gt;$ @tt:/out=file&lt;BR /&gt;and then ctrl Z at the end</description>
      <pubDate>Thu, 19 Oct 2006 08:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883008#M35006</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-10-19T08:43:04Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883009#M35007</link>
      <description>Is that a supported feature or is it un-documented?</description>
      <pubDate>Thu, 19 Oct 2006 08:48:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883009#M35007</guid>
      <dc:creator>Rob Kersey</dc:creator>
      <dc:date>2006-10-19T08:48:08Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883010#M35008</link>
      <description>I do not know if it is documented. I suspect it is a V1 feature.</description>
      <pubDate>Thu, 19 Oct 2006 09:02:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883010#M35008</guid>
      <dc:creator>labadie_1</dc:creator>
      <dc:date>2006-10-19T09:02:09Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883011#M35009</link>
      <description>&lt;BR /&gt;Giles&amp;gt;&amp;gt; Any advice?&lt;BR /&gt;&lt;BR /&gt;Use DEFINE /USER and all will be well.&lt;BR /&gt;&lt;BR /&gt;Looks like a minor search problem.&lt;BR /&gt;&lt;BR /&gt;Albert&amp;gt;&amp;gt; The above "$ open/write out" defines a file handle, not a logical device.&lt;BR /&gt;&lt;BR /&gt;It creates a process permanent file accesssible through the logical name 'out',&lt;BR /&gt;which appear to be exactly what Giles want. He would not want a 'device'.&lt;BR /&gt;&lt;BR /&gt;Albert&amp;gt;&amp;gt; In short. use "$search/output=sys$login:out.lis"&lt;BR /&gt;or "$ define sys$output sys$login:out.lis"&lt;BR /&gt;&lt;BR /&gt;No, that give entirely different semantics.&lt;BR /&gt;It will create a fresh file every time.&lt;BR /&gt;The DCL open allows one to collect output from multiple programs in a consistent way. &lt;BR /&gt;At least, that is the intent.&lt;BR /&gt;DCL creates a VFC file which theoretically  allows for better combining, where the other solutions create simple VAR files, but that difference is rarely needed/appreciated.&lt;BR /&gt;&lt;BR /&gt;Bob&amp;gt;&amp;gt; remove the ":" from the /OUTPUT &lt;BR /&gt;Nah.. makes no difference here and the ":" will make it clear the script intents to use a logical name, not a file called out.&lt;BR /&gt;&lt;BR /&gt;Cheers,&lt;BR /&gt;Hein.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 19 Oct 2006 09:27:33 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883011#M35009</guid>
      <dc:creator>Hein van den Heuvel</dc:creator>
      <dc:date>2006-10-19T09:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883012#M35010</link>
      <description>&lt;!--!*#--&gt;define/user is not a solution: the real script runs many images in sequence and the sys$output definition will not survive the first image rundown&lt;BR /&gt;&lt;BR /&gt;To be more precise the procedure is supposed to run either in batch or in interactive mode.&lt;BR /&gt;&lt;BR /&gt;I woul like this kind of functionality:&lt;BR /&gt;&lt;BR /&gt;if &lt;BATCH mode=""&gt; then&lt;BR /&gt;redirect sys$output to listfile for the rest of the script&lt;BR /&gt;fi&lt;BR /&gt;remaining stuff here&lt;BR /&gt;....&lt;BR /&gt;&lt;/BATCH&gt;</description>
      <pubDate>Thu, 19 Oct 2006 10:15:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883012#M35010</guid>
      <dc:creator>Gilles Pion</dc:creator>
      <dc:date>2006-10-19T10:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883013#M35011</link>
      <description>Gilles,&lt;BR /&gt;&lt;BR /&gt;I got back from my meeting, and I see that there has been some back and forth on this topic.&lt;BR /&gt;&lt;BR /&gt;Going back a ways (OpenVMS VAX 6.2, to be precise), the problem you mention is reproduceable there.&lt;BR /&gt;&lt;BR /&gt;Apparently, there something unanticipated happening with SEARCH handling of the /OUTPUT parameter. However, essentially the same construct will work, as follows:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/WRITE OUTPUTFILE X.TMP&lt;BR /&gt;$ SEARCH/OUT=OUTPUTFILE filename string&lt;BR /&gt;$ CLOSE OUTPUTFILE&lt;BR /&gt;&lt;BR /&gt;Note that OUTPUTFILE is opened as a process permanent file by DCL (the OPEN command) and thus is appended to in sequence until it is closed.&lt;BR /&gt;&lt;BR /&gt;On first glance, I do not see a reason why your original code should not work. Actually, using the /OUTPUT qualifier does not seem to affect the problem. ASSIGNing or DEFINEing the process permanent file to SYS$OUTPUT will also cause the error. &lt;BR /&gt;&lt;BR /&gt;If you have a support contrat, I would suggest submitting this as a bug (unless, of course, someone can volunteer a good explanation of why this behavior is "correct").&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>Thu, 19 Oct 2006 11:27:57 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883013#M35011</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-10-19T11:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883014#M35012</link>
      <description>Sounds like another case where search's need to know the output device is causing trouble.  IIRC, at one time it didn't work at all with PIPE out, but they fixed it so it mostly works now.&lt;BR /&gt;&lt;BR /&gt;If wants to know the device type so it can highlight the matched text properly.</description>
      <pubDate>Thu, 19 Oct 2006 13:31:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883014#M35012</guid>
      <dc:creator>David Jones_21</dc:creator>
      <dc:date>2006-10-19T13:31:22Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883015#M35013</link>
      <description>Gilles,&lt;BR /&gt;&lt;BR /&gt;another point not addressed so far, and maybe of relevance here, is the&lt;BR /&gt;/USER&lt;BR /&gt;qualifier on the dDEFINE SYS$OUTPUT command/&lt;BR /&gt;&lt;BR /&gt;User_mode definitions are automagically deassigned upon image rundown; and if I understand correctly, that is NOT the desired behavior.&lt;BR /&gt;If you leave out the /USER (or substitute it by /SUPER, the default) you get a definition that remains in effect until either redefined or explicitly deassigned.&lt;BR /&gt;This means all output in the mean time will go to the file pointed at by the logical.&lt;BR /&gt;&lt;BR /&gt;hth&lt;BR /&gt;&lt;BR /&gt;Proost.&lt;BR /&gt;&lt;BR /&gt;Have one on me.&lt;BR /&gt;&lt;BR /&gt;jpe</description>
      <pubDate>Thu, 19 Oct 2006 14:18:53 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883015#M35013</guid>
      <dc:creator>Jan van den Ende</dc:creator>
      <dc:date>2006-10-19T14:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883016#M35014</link>
      <description>Gilles,&lt;BR /&gt;&lt;BR /&gt;To amplify on my posting from yesterday:&lt;BR /&gt;&lt;BR /&gt;The file opened by the OPEN command (and assigned to be used for SYS$OUTPUT) is a process-permanent file opened by DCL and accessible to the user program).&lt;BR /&gt;&lt;BR /&gt;Thus, the following should route all output to the "log" file:&lt;BR /&gt;&lt;BR /&gt;$ OPEN/WRITE OUTPUTFILE X.TMP&lt;BR /&gt;$ SEARCH/OUT=OUTPUTFILE filename string&lt;BR /&gt;$ DIRECTORY/OUTPUT=OUTPUTFILE&lt;BR /&gt;...&lt;BR /&gt;$ CLOSE OUTPUTFILE&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>Fri, 20 Oct 2006 08:36:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883016#M35014</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-10-20T08:36:38Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883017#M35015</link>
      <description>&lt;!--!*#--&gt;[Replying-to: Robert Gezelter]&lt;BR /&gt;&lt;BR /&gt;&amp;gt;If you have a support contrat, I would suggest&lt;BR /&gt;&amp;gt;submitting this as a bug (unless, of course, &lt;BR /&gt;&amp;gt;someone can volunteer a good explanation of &lt;BR /&gt;&amp;gt;why this behavior is "correct").&lt;BR /&gt;&lt;BR /&gt;I also consider this behaviour as a bug, but not very serious, just strange:&lt;BR /&gt;&lt;BR /&gt;$ open/write out out.lis&lt;BR /&gt;$ define sys$output out:&lt;BR /&gt;$ sear login.com nohing&lt;BR /&gt;%SYSTEM-F-NOSUCHDEV, no such device available&lt;BR /&gt;$ sear login.com/out=out: no ! this one works!!!&lt;BR /&gt;$ sear login.com/out=sys$output: no&lt;BR /&gt;%SYSTEM-F-NOSUCHDEV, no such device available</description>
      <pubDate>Fri, 20 Oct 2006 08:37:39 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883017#M35015</guid>
      <dc:creator>Gilles Pion</dc:creator>
      <dc:date>2006-10-20T08:37:39Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883018#M35016</link>
      <description>Gilles,&lt;BR /&gt;&lt;BR /&gt;Concur. I suggest that you file it with HP if you have a support contract). If you want, you can mail them the hyperlink to the ITRC thread.&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>Fri, 20 Oct 2006 08:40:50 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883018#M35016</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2006-10-20T08:40:50Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883019#M35017</link>
      <description>Thanks, I've opened a support case.&lt;BR /&gt;</description>
      <pubDate>Fri, 20 Oct 2006 09:18:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883019#M35017</guid>
      <dc:creator>Gilles Pion</dc:creator>
      <dc:date>2006-10-20T09:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: search with redefined sys$output =&gt; NOSUCHDEV</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883020#M35018</link>
      <description>Another odd feature of SEARCH's output file processing is that, unlike other VMS utilities, it OPENs its output file before opening its input file.&lt;BR /&gt;&lt;BR /&gt;This makes it more difficult to use SEARCH as an incremental filter:&lt;BR /&gt;&lt;BR /&gt;$ CREATE NAMES.TXT&lt;BR /&gt;Sally FRIEND&lt;BR /&gt;Holly ENEMY&lt;BR /&gt;$ SEARCH NAMES.TXT FRIEND /OUTPUT=NAMES.TXT &lt;BR /&gt;%SEARCH-W-OPENIN, error opening NAMES.TXT;2 as input&lt;BR /&gt;-RMS-E-FLK, file currently locked by another user&lt;BR /&gt;%SEARCH-I-NOMATCHES, no strings matched&lt;BR /&gt;&lt;BR /&gt;So you have to keep using new file names at each step of a multiple pass SEARCH filter, or use a version number with the input file.&lt;BR /&gt;&lt;BR /&gt;I think it should work the same way that:&lt;BR /&gt;$ TYPE NAMES.TXT /OUTPUT=NAMES.TXT !works&lt;BR /&gt;&lt;BR /&gt;Hopefully the engineers will read this thread and fix this too (I have no software support so can't request it).</description>
      <pubDate>Fri, 20 Oct 2006 14:35:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/search-with-redefined-sys-output-gt-nosuchdev/m-p/3883020#M35018</guid>
      <dc:creator>Jess Goodman</dc:creator>
      <dc:date>2006-10-20T14:35:59Z</dc:date>
    </item>
  </channel>
</rss>

