- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - OpenVMS
- >
- Re: Menu.com within captive account in VMS 7.3-2
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 03:52 AM
тАО12-14-2005 03:52 AM
Menu.com within captive account in VMS 7.3-2
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.
Thank you in advance.
Jorge
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 05:45 AM
тАО12-14-2005 05:45 AM
Re: Menu.com within captive account in VMS 7.3-2
$ SET NOON
$ SET NOCONTROL=Y
$ SAY:= WRITE SYS$OUTPUT
$BEGIN_MAIN:
$ TYPE/PAGE NL:
$ SAY " FORM MENU "
$ SAY ""
$ SAY ""
$ SAY " 1. Lanscape"
$ SAY ""
$ SAY " 2. Portrait"
$ SAY ""
$ SAY " 3. Legal"
$ SAY ""
$ SAY " 4. Other_form_name_1"
$ SAY ""
$ SAY " 5. Other_form_name_2"
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ A10: read/end_of_file=A10/prompt=" Enter 1 thru 5 or 0 to EXIT: " -
SYS$COMMAND ACTION
$ if action.eqs."" then action=" "
$!$ valid_selections="0123456789ABC"
$ valid_selections="012345"
$ if f$locate(action,valid_selections).ne.f$length(valid_selections) then got
$ SAY ""
$ INQU/NOPUNC DUMMY " Not a valid selection. Press RETURN to continue."
$ GOTO BEGIN_MAIN
$BEGIN_SELECTION:
$ if action.eq.0 then goto END_MAIN
$! FORM.COM or even different .COM files
$ selected1="FORM form_name_1 queue_name"
$ selected2="FORM PCDEV"
$ selected3="FORM NABSCS"
$ selected4="FORM MILCLS"
$ selected5="FORM CTSPCM"
$ FILE=SELECTED'ACTION
$ @OPER:'FILE'
$ GOTO BEGIN_MAIN
$END_MAIN:
$exit
Lawrence
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 08:00 AM
тАО12-14-2005 08:00 AM
Re: Menu.com within captive account in VMS 7.3-2
$ SET NOON
$ SET NOCONTROL=Y
$ SAY:= WRITE SYS$OUTPUT
$BEGIN_MAIN:
$ TYPE/PAGE NL:
$ SAY " FORM MENU "
$ SAY ""
$ SAY ""
$ SAY " 1. Form A"
$ SAY ""
$ SAY " 2. Form CHCM"
$ SAY ""
$! SAY " 3. Legal"
$ SAY ""
$! SAY " 4. Other_form_name_1"
$! SAY ""
$! SAY " 5. Other_form_name_2"
$! SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ SAY ""
$ A10: read/end_of_file=A2/prompt=" Enter 1 thru 2 or 0 to EXIT: " -
SYS$COMMAND ACTION
$ if action.eqs."" then action=" "
$!$ valid_selections="0123456789ABC"
$ valid_selections="012"
$ if f$locate(action,valid_selections).ne.f$length(valid_selections) then got
$ SAY ""
$ INQU/NOPUNC DUMMY " Not a valid selection. Press RETURN to continue."
$ GOTO BEGIN_MAIN
$BEGIN_SELECTION:
$ if action.eq.0 then goto END_MAIN
$! FORM.COM or even different .COM files
$ selected1="FORM A hp5si_fin"
$ selected2="FORM CHCM hp5si_fin"
$! selected3="FORM NABSCS"
$! selected4="FORM MILCLS"
$! selected5="FORM CTSPCM"
$ FILE=SELECTED'ACTION
$ @OPER:'FILE'
$ GOTO BEGIN_MAIN
$END_MAIN:
$exit
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 01:35 PM
тАО12-14-2005 01:35 PM
Re: Menu.com within captive account in VMS 7.3-2
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)
Replace:
$ INQUIRE symbol "prompt"
with:
$ READ/PROMPT="prompt" SYS$COMMAND symbol
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-14-2005 10:23 PM
тАО12-14-2005 10:23 PM
Re: Menu.com within captive account in VMS 7.3-2
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).
- Bob Gezelter, http://www.rlgsc.com
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 05:21 AM
тАО12-15-2005 05:21 AM
Re: Menu.com within captive account in VMS 7.3-2
Perhaps you may want to edit the input string, e.g. like:
$ action = f$edit(F$extract(0,1,action),"collapse,trim")
regards Kalle
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО12-15-2005 05:41 AM
тАО12-15-2005 05:41 AM
Re: Menu.com within captive account in VMS 7.3-2
$! FORM.COM
$! You may want to do some error checking on P1
$ IF P1 .nes. ""
$ THEN
$! Validate P1 value
.
.
.
$ SET QUEUE queue_name/FORM=P1
$ exit
Lawrence