<?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: Menu script in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388038#M31435</link>
    <description>Attached I put another file a bit more specific.</description>
    <pubDate>Tue, 28 Sep 2004 00:37:56 GMT</pubDate>
    <dc:creator>Taulant Shamo</dc:creator>
    <dc:date>2004-09-28T00:37:56Z</dc:date>
    <item>
      <title>Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388035#M31432</link>
      <description>Is posible in OVMS to open have a script as menu. I mean to create one script which can ask to enter choice one for x reason choice y for log choice z for something else. See the file attached:</description>
      <pubDate>Mon, 27 Sep 2004 15:34:08 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388035#M31432</guid>
      <dc:creator>Taulant Shamo</dc:creator>
      <dc:date>2004-09-27T15:34:08Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388036#M31433</link>
      <description>Taulant,&lt;BR /&gt;&lt;BR /&gt;  Certainly, it's just a matter of writing a program in your favourite language. You'd need to give more detail on exactly what you're trying to achieve to give a more detailed answer.&lt;BR /&gt;&lt;BR /&gt;  Is you attachment the interface you want to implement or just an example? &lt;BR /&gt;</description>
      <pubDate>Mon, 27 Sep 2004 16:48:25 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388036#M31433</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2004-09-27T16:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388037#M31434</link>
      <description>Taulant,&lt;BR /&gt;&lt;BR /&gt;Of course you can write a command procedure (script) which acts as a menu.&lt;BR /&gt;Use WRITE SYS$OUTPUT to write the contents of the menu to the termianl. Then use:&lt;BR /&gt;$ READ SYS$COMMAND CHOICE /PROMPT="String" /END=endlabel&lt;BR /&gt;&lt;BR /&gt;to read the input. String will be the prompt for reading (in yours example " Enter option (1,2,3...) or ?: "). The end label is a DCL label to which program will jump when the user press &lt;CTRL&gt;Z.&lt;BR /&gt;You have the user choice in the symbol CHOICE. Now you must write a series of IFs which test the choice. Example:&lt;BR /&gt;$START_MENU:&lt;BR /&gt;$ WRITE SYS$OUTPUT -&lt;BR /&gt; "SHORT MESSAGE TERMINAL - ALBANIA (NEW S)"&lt;BR /&gt;$ WRITE SYS$OUTPUT ""&lt;BR /&gt;$ WRITE SYS$OUTPUT -&lt;BR /&gt; "        1) Submit Message          2) Status Report           3) Options"&lt;BR /&gt;&lt;BR /&gt;etc...&lt;BR /&gt;$ READ SYS$COMMAND CHOICE -&lt;BR /&gt;/PROMPT="Enter option (1,2,3...) or ?:"/END=START_MENU&lt;BR /&gt;$ IF CHOICE.EQS."1" THEN GOTO SUBMIT_MESSAGE&lt;BR /&gt;$ IF CHOICE.EQS."2" THEN GOTO STATUS_REPORT&lt;BR /&gt;and so on. At end maybe:&lt;BR /&gt;$ WRITE SYS$OUTPUT "Bad option, please reenter"&lt;BR /&gt;$ GOTO START_MENU&lt;BR /&gt;&lt;BR /&gt;The  label is before displaying the whole menu.&lt;BR /&gt;&lt;BR /&gt;$SUBMIT_MESSAGE:&lt;BR /&gt;$ READ SYS$COMMAND NUMBER/PROMPT="Enter mobile number: "/END=START_MENU&lt;BR /&gt;&lt;BR /&gt;Now you have the number in the NUMBER symbol.  If needed do some testing and call the program to submit the message. At end you add the line:&lt;BR /&gt;$ GOTO START_MENU&lt;BR /&gt;&lt;BR /&gt;Write labels, reads and other commands for each option.&lt;BR /&gt;&lt;BR /&gt;Bojan&lt;BR /&gt;&lt;/CTRL&gt;</description>
      <pubDate>Mon, 27 Sep 2004 17:07:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388037#M31434</guid>
      <dc:creator>Bojan Nemec</dc:creator>
      <dc:date>2004-09-27T17:07:12Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388038#M31435</link>
      <description>Attached I put another file a bit more specific.</description>
      <pubDate>Tue, 28 Sep 2004 00:37:56 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388038#M31435</guid>
      <dc:creator>Taulant Shamo</dc:creator>
      <dc:date>2004-09-28T00:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388039#M31436</link>
      <description>RE your menu  option 2 (to filter only the last 4 lines at the end of log) &lt;BR /&gt;&lt;BR /&gt;To show the last four lines of a text file &lt;BR /&gt;&lt;BR /&gt;$ TYPE/TAIL=4 filename.log&lt;BR /&gt;&lt;BR /&gt;If you need to display lines containing certain strings only then the SEARCH command (possibly combined with PIPE may do what you want. There are utilities to do more complex searches available such as FIND and ports of the unix grep.</description>
      <pubDate>Tue, 28 Sep 2004 03:34:01 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388039#M31436</guid>
      <dc:creator>Ian Miller.</dc:creator>
      <dc:date>2004-09-28T03:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388040#M31437</link>
      <description>There are several MENU packages available to assist in creating such menu, e.g.&lt;BR /&gt;-ZMENU, see &lt;A href="http://vms.process.com/scripts/fileserv/fileserv.com?ZMENU" target="_blank"&gt;http://vms.process.com/scripts/fileserv/fileserv.com?ZMENU&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;- MNEUFINDER, see the Freeware archives (this one only is free for VAX)</description>
      <pubDate>Tue, 28 Sep 2004 03:50:28 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388040#M31437</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2004-09-28T03:50:28Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388041#M31438</link>
      <description>Hi.&lt;BR /&gt;&lt;BR /&gt;In sys$examples exits a command procedure to execute a manager's menu&lt;BR /&gt;&lt;BR /&gt;MGRMENU.COM&lt;BR /&gt;&lt;BR /&gt;Godd luck.</description>
      <pubDate>Thu, 30 Sep 2004 10:37:42 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388041#M31438</guid>
      <dc:creator>Daniel Fernandez Illan</dc:creator>
      <dc:date>2004-09-30T10:37:42Z</dc:date>
    </item>
    <item>
      <title>Re: Menu script</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388042#M31439</link>
      <description>Hi,&lt;BR /&gt;I wrote a little menu manager with semi-graphical rappresentation.&lt;BR /&gt;You write a text file and menu execute all choice.&lt;BR /&gt;Written in DCL is integrated in my procedure. If you are interesting into it I could extract the needed files into ZIPped attachment; avaiable on monday or tuesday.&lt;BR /&gt; &lt;BR /&gt;Antonio Vigliotti&lt;BR /&gt;</description>
      <pubDate>Fri, 01 Oct 2004 04:57:16 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-script/m-p/3388042#M31439</guid>
      <dc:creator>Antoniov.</dc:creator>
      <dc:date>2004-10-01T04:57:16Z</dc:date>
    </item>
  </channel>
</rss>

