<?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: Very basic question about Inquire in DCL com files in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6797873#M37504</link>
    <description>&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As they say - this is a "feature". Input into the INQUIRE command is considered command input, and so is stored in the command recall buffer. That means if your command procedure has a loop, you can recall previous inputs into subsequent INQUIRE commands. This is intentional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, input into the READ command is not stored, so you have a choice as to which behaviour you prefer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As alluded to by Steven, there are some potential vulnerabilities exposed by INQUIRE. The usual advice is to use READ /PROMPT instead.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Sep 2015 00:58:35 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2015-09-30T00:58:35Z</dc:date>
    <item>
      <title>Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789208#M37498</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;I am very new to DCL and I have a small command file.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The command file does what I want but once it has finished and I am back at the prompt when I go back up to run the file again I do not see what I expect to.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have an inquire in the file and when I go back up I see my input for that instead of the previous command I ran.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The file is called b.com and contains:&lt;/P&gt;&lt;P&gt;$ SAY "Have you ensured that the system was placed into Standalone and then Shutdown?"&lt;BR /&gt;$ INQUIRE CONT "Continue? [Y/N]"&lt;BR /&gt;$ IF .NOT. CONT THEN EXIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I run&amp;nbsp;@b and I enter y.&lt;/P&gt;&lt;P&gt;When I go back through the history I get a line with y on it instead of&amp;nbsp;@b how can I stop this from happening?&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:34:46 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789208#M37498</guid>
      <dc:creator>stephenbrayshaw</dc:creator>
      <dc:date>2015-09-28T13:34:46Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789210#M37499</link>
      <description>&lt;P&gt;Steve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Your explanation is a bit rough for me to understand you. &amp;nbsp;However, it sounds like you are trying to recall a previous inputted command however, you are seeing only the LAST command you entered. &amp;nbsp; &amp;nbsp;Try entering RECALL/ALL on the command line to see the "@B" command if you desire to enter this command instead of the answer to the inquiry.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope this helps. &amp;nbsp;Regards,&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:47:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789210#M37499</guid>
      <dc:creator>Tom Wetty</dc:creator>
      <dc:date>2015-09-28T13:47:36Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789215#M37500</link>
      <description>&lt;P&gt;Hi Tom,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am able to see&amp;nbsp;@b at the command prompt but it is that I do not want to see the lines I enter during the execution of the com file when scrolling back up through my history.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:54:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789215#M37500</guid>
      <dc:creator>stephenbrayshaw</dc:creator>
      <dc:date>2015-09-28T13:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789218#M37501</link>
      <description>&lt;P&gt;Steve:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There is no way that I am aware of to prevent the storage of inquiry DCL commands in the command buffer.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 13:58:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789218#M37501</guid>
      <dc:creator>Tom Wetty</dc:creator>
      <dc:date>2015-09-28T13:58:25Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789226#M37502</link>
      <description>&lt;P&gt;&amp;gt; I am very new to DCL [...]&lt;BR /&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; That may be why you're using INQUIRE.&amp;nbsp; A Web search for. say:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; DCL INQUIRE&lt;BR /&gt;should find many explanations of why this is generally a bad idea&lt;BR /&gt;(having nothing to do with command-line recall).&amp;nbsp; For a generally&lt;BR /&gt;better/safer alternative, see:&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; HELP READ /PROMPT&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 14:23:23 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789226#M37502</guid>
      <dc:creator>Steven Schweda</dc:creator>
      <dc:date>2015-09-28T14:23:23Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789326#M37503</link>
      <description>&lt;P&gt;Following on from Steven:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;$ SAY "Have you ensured that the system was placed into Standalone and then Shutdown?"&lt;BR /&gt;&lt;STRONG&gt;$ READ/PROMPT= "Continue? [Y/N]" sys$command CONT&lt;/STRONG&gt;&lt;BR /&gt;$ IF .NOT. CONT THEN EXIT&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 28 Sep 2015 21:34:18 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6789326#M37503</guid>
      <dc:creator>MarkOfAus</dc:creator>
      <dc:date>2015-09-28T21:34:18Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6797873#M37504</link>
      <description>&lt;P&gt;Stephen,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp;As they say - this is a "feature". Input into the INQUIRE command is considered command input, and so is stored in the command recall buffer. That means if your command procedure has a loop, you can recall previous inputs into subsequent INQUIRE commands. This is intentional.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In contrast, input into the READ command is not stored, so you have a choice as to which behaviour you prefer.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;As alluded to by Steven, there are some potential vulnerabilities exposed by INQUIRE. The usual advice is to use READ /PROMPT instead.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Sep 2015 00:58:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6797873#M37504</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2015-09-30T00:58:35Z</dc:date>
    </item>
    <item>
      <title>Re: Very basic question about Inquire in DCL com files</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6798377#M37505</link>
      <description>&lt;P&gt;INQUIRE is an ill-documented and potentially dangerous hunk of DCL. &amp;nbsp; INQUIRE allows the user receiving the prompt to execute — yes, execute — certain DCL code. &amp;nbsp; In the prompt. &amp;nbsp; The INQUIRE command is best left to very advanced DCL users, and — unless they're intentionally inserting a subtle backdoor — even they&amp;nbsp;will generally avoid this command. &amp;nbsp; &amp;nbsp;Due to the risks of this command, INQUIRE is explicitly prohibited in certain DCL procedure run-time contexts. &amp;nbsp; IMNSHO,&amp;nbsp;INQUIRE should have been deprecated decades ago. &amp;nbsp;Use READ /PROMPT, as mentioned above.&lt;/P&gt;</description>
      <pubDate>Thu, 01 Oct 2015 15:16:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/very-basic-question-about-inquire-in-dcl-com-files/m-p/6798377#M37505</guid>
      <dc:creator>Hoff</dc:creator>
      <dc:date>2015-10-01T15:16:38Z</dc:date>
    </item>
  </channel>
</rss>

