Inspect Manual
High-Level Inspect Commands
Inspect Manual—429164-006
6-9
ADD KEY
will result in this error message being displayed:
Related Commands
ALIAS on page 6-17
DELETE ALIAS on page 6-30
FA on page 6-83
LIST ALIAS on page 6-131
SET ECHO with the ALIAS option on page 6-174
Examples
Using the IF command and references to other aliases within an alias:
Entering XHACK causes expansion of OLDVAL and XSET.
Using aliases as abbreviations for long scope or identifier names:
ADD KEY
The ADD KEY command adds a function-key definition to the function-key list for the
current Inspect session. To add a function-key definition, you provide ADD KEY with:
The name of the function key
** Inspect error 4 ** Effective input record is too long
-PRG-ADD ALIAS oldval = "IF x < 99 THEN DISPLAY 'X hack ',X"
-PRG-ADD ALIAS xset = "DISPLAY 'X being set to 99';MOD X=99"
-PRG-ADD ALIAS xhack = "oldval;xset"
-PRG-xhack
x hack x=50
x being set to 99
-PRG-DISPLAY X
x=99
-PRG-ADD ALIAS myproc = “A_Very_Long_Procedure_Name”
-PRG-BREAK #myproc