Supervising the Network
6-20
Creating Menus
Using the NMENU Commands
NOTE: Append does not work with GETP.
Using GETx Interactive Commands
Following are some general guidelines on the use of the GETx commands.
• You must define commands for each menu ITEM separately.
• Enter commands between the ITEM and the EXEC command(s) associated with
the ITEM.
• Enter the commands in either uppercase or lowercase.
• Limit each prompt to one line.
GETx Command Examples
• Assume that you want to require users to enter a project code to keep track of
work performed for that project. Type the following:
GETR Please enter the project code: { } 08,, { }
GETR Please enter your password: {} 08,, {}
GETO Load default macros? { } 01,, { }
• To get input for a program that calculates mortgages, using GETR, type
GETR Enter the loan amount: { } 7,,{ }
GETR Enter the interest rate: { } 5,8.5, { }
GETO Enter the period (/m=months or /y=years):+
{ } 7,/y=30, { }
EXEC mortgage
The input values are appended to the “EXEC mortgage” command before it is
executed.
• To create the previous program using GETP in place of other GET commands,
type
GETP Enter the loan amount: { } 7,,{ }
GETP Enter the interest rate: { } 5,8.5, { }
GETP Optional-Enter the period (/m=months or+
/y=years): { } 7,/y=30, { }
EXEC echo %1
EXEC echo %2
EXEC echo %3