<?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.com within captive account in VMS 7.3-2 in Operating System - OpenVMS</title>
    <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691376#M73242</link>
    <description>Jorge,&lt;BR /&gt;&lt;BR /&gt;  If this is a CAPTIVE account, you can't use the INQUIRE command (as it can be used to break out of any command procedure)&lt;BR /&gt;&lt;BR /&gt;Replace: &lt;BR /&gt;&lt;BR /&gt; $ INQUIRE symbol "prompt"&lt;BR /&gt;&lt;BR /&gt;  with:&lt;BR /&gt;&lt;BR /&gt; $ READ/PROMPT="prompt" SYS$COMMAND symbol&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Wed, 14 Dec 2005 21:35:12 GMT</pubDate>
    <dc:creator>John Gillings</dc:creator>
    <dc:date>2005-12-14T21:35:12Z</dc:date>
    <item>
      <title>Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691373#M73239</link>
      <description>Greetings,&lt;BR /&gt;Within a captive VMS account, I need to write a simple menu.com to allow the users to change the form type on a printer.  Does anyone here have similiar DCL procedure that I can use as an example?  I am new in the VMS world but very eager to learn the technique.&lt;BR /&gt;&lt;BR /&gt;Thank you in advance.&lt;BR /&gt;&lt;BR /&gt;Jorge</description>
      <pubDate>Wed, 14 Dec 2005 11:52:49 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691373#M73239</guid>
      <dc:creator>Jasper_15</dc:creator>
      <dc:date>2005-12-14T11:52:49Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691374#M73240</link>
      <description>Jorge: A sample menu.com follows. You would have to modify to meet your needs.&lt;BR /&gt;$   SET NOON&lt;BR /&gt;$   SET NOCONTROL=Y&lt;BR /&gt;$   SAY:= WRITE SYS$OUTPUT&lt;BR /&gt;$BEGIN_MAIN:&lt;BR /&gt;$   TYPE/PAGE NL:&lt;BR /&gt;$   SAY   "       FORM MENU  "&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY "                   1.   Lanscape"&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY "                   2.   Portrait"&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY "                   3.   Legal"&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY "                   4.   Other_form_name_1"&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY "                   5.   Other_form_name_2"&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   A10: read/end_of_file=A10/prompt="  Enter 1 thru 5 or 0 to EXIT:  " -&lt;BR /&gt;    SYS$COMMAND ACTION&lt;BR /&gt;$   if action.eqs."" then action=" "&lt;BR /&gt;$!$   valid_selections="0123456789ABC"&lt;BR /&gt;$   valid_selections="012345"&lt;BR /&gt;$   if f$locate(action,valid_selections).ne.f$length(valid_selections) then got&lt;BR /&gt;$   SAY ""&lt;BR /&gt;$   INQU/NOPUNC DUMMY " Not a valid selection.  Press RETURN to continue."&lt;BR /&gt;$   GOTO BEGIN_MAIN&lt;BR /&gt;$BEGIN_SELECTION:&lt;BR /&gt;$   if action.eq.0 then goto END_MAIN&lt;BR /&gt;$! FORM.COM or even different .COM files&lt;BR /&gt;$   selected1="FORM form_name_1 queue_name"&lt;BR /&gt;$   selected2="FORM PCDEV"&lt;BR /&gt;$   selected3="FORM NABSCS"&lt;BR /&gt;$   selected4="FORM MILCLS"&lt;BR /&gt;$   selected5="FORM CTSPCM"&lt;BR /&gt;$   FILE=SELECTED'ACTION&lt;BR /&gt;$   @OPER:'FILE'&lt;BR /&gt;$   GOTO BEGIN_MAIN&lt;BR /&gt;$END_MAIN:&lt;BR /&gt;$exit&lt;BR /&gt;Lawrence</description>
      <pubDate>Wed, 14 Dec 2005 13:45:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691374#M73240</guid>
      <dc:creator>Lawrence Czlapinski</dc:creator>
      <dc:date>2005-12-14T13:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691375#M73241</link>
      <description>Where are changes takes place?  This is what I have so far;  I just need to change form=A to Form=CHCM and back to form=A once I'm done with the form.  Thanks for your help!!&lt;BR /&gt;&lt;BR /&gt;$ SET NOON&lt;BR /&gt;$ SET NOCONTROL=Y&lt;BR /&gt;$ SAY:= WRITE SYS$OUTPUT&lt;BR /&gt;$BEGIN_MAIN:&lt;BR /&gt;$ TYPE/PAGE NL:&lt;BR /&gt;$ SAY " FORM MENU "&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY " 1. Form A"&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY " 2. Form CHCM"&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$! SAY " 3. Legal"&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$! SAY " 4. Other_form_name_1"&lt;BR /&gt;$! SAY ""&lt;BR /&gt;$! SAY " 5. Other_form_name_2"&lt;BR /&gt;$! SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ A10: read/end_of_file=A2/prompt=" Enter 1 thru 2 or 0 to EXIT: " -&lt;BR /&gt;SYS$COMMAND ACTION&lt;BR /&gt;$ if action.eqs."" then action=" "&lt;BR /&gt;$!$ valid_selections="0123456789ABC"&lt;BR /&gt;$ valid_selections="012"&lt;BR /&gt;$ if f$locate(action,valid_selections).ne.f$length(valid_selections) then got&lt;BR /&gt;$ SAY ""&lt;BR /&gt;$ INQU/NOPUNC DUMMY " Not a valid selection. Press RETURN to continue."&lt;BR /&gt;$ GOTO BEGIN_MAIN&lt;BR /&gt;$BEGIN_SELECTION:&lt;BR /&gt;$ if action.eq.0 then goto END_MAIN&lt;BR /&gt;$! FORM.COM or even different .COM files&lt;BR /&gt;$ selected1="FORM A hp5si_fin"&lt;BR /&gt;$ selected2="FORM CHCM hp5si_fin"&lt;BR /&gt;$! selected3="FORM NABSCS"&lt;BR /&gt;$! selected4="FORM MILCLS"&lt;BR /&gt;$! selected5="FORM CTSPCM"&lt;BR /&gt;$ FILE=SELECTED'ACTION&lt;BR /&gt;$ @OPER:'FILE'&lt;BR /&gt;$ GOTO BEGIN_MAIN&lt;BR /&gt;$END_MAIN:&lt;BR /&gt;$exit&lt;BR /&gt;                                            &lt;BR /&gt;</description>
      <pubDate>Wed, 14 Dec 2005 16:00:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691375#M73241</guid>
      <dc:creator>Ian Derringer</dc:creator>
      <dc:date>2005-12-14T16:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691376#M73242</link>
      <description>Jorge,&lt;BR /&gt;&lt;BR /&gt;  If this is a CAPTIVE account, you can't use the INQUIRE command (as it can be used to break out of any command procedure)&lt;BR /&gt;&lt;BR /&gt;Replace: &lt;BR /&gt;&lt;BR /&gt; $ INQUIRE symbol "prompt"&lt;BR /&gt;&lt;BR /&gt;  with:&lt;BR /&gt;&lt;BR /&gt; $ READ/PROMPT="prompt" SYS$COMMAND symbol&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Wed, 14 Dec 2005 21:35:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691376#M73242</guid>
      <dc:creator>John Gillings</dc:creator>
      <dc:date>2005-12-14T21:35:12Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691377#M73243</link>
      <description>Jorge,&lt;BR /&gt;&lt;BR /&gt;Please also note that changing the form type (/FORM_MOUNTED) requires Management access to the queue, not necessarily the OPER privilege (see the HELP text).&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, 15 Dec 2005 06:23:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691377#M73243</guid>
      <dc:creator>Robert Gezelter</dc:creator>
      <dc:date>2005-12-15T06:23:02Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691378#M73244</link>
      <description>Pls. note also, that the check for valid input also accepts inputs like 01 or 12 or 012, which will lead to some error later on.&lt;BR /&gt;Perhaps you may want to edit the input string, e.g. like:&lt;BR /&gt;$ action = f$edit(F$extract(0,1,action),"collapse,trim")&lt;BR /&gt;&lt;BR /&gt;regards Kalle</description>
      <pubDate>Thu, 15 Dec 2005 13:21:55 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691378#M73244</guid>
      <dc:creator>Karl Rohwedder</dc:creator>
      <dc:date>2005-12-15T13:21:55Z</dc:date>
    </item>
    <item>
      <title>Re: Menu.com within captive account in VMS 7.3-2</title>
      <link>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691379#M73245</link>
      <description>Jorge: You would set the form in @your_dir:FORM.COM (or other name). Users will need execute access to the directory. You might want to do a hierarchy of menus which prompts for things like queue and filename to be printed.&lt;BR /&gt;$! FORM.COM&lt;BR /&gt;$! You may want to do some error checking on P1&lt;BR /&gt;$ IF P1 .nes. ""&lt;BR /&gt;$ THEN&lt;BR /&gt;$! Validate P1 value&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;.&lt;BR /&gt;$    SET QUEUE queue_name/FORM=P1&lt;BR /&gt;$ exit&lt;BR /&gt;Lawrence</description>
      <pubDate>Thu, 15 Dec 2005 13:41:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-openvms/menu-com-within-captive-account-in-vms-7-3-2/m-p/3691379#M73245</guid>
      <dc:creator>Lawrence Czlapinski</dc:creator>
      <dc:date>2005-12-15T13:41:22Z</dc:date>
    </item>
  </channel>
</rss>

