As described in, Passing, A value to an alias definition – HP NonStop G-Series User Manual
Page 83: Passing a value to a macro definition, Passing a value to an alias definition
![background image](/manuals/396922/83/background.png)
Defining Function Keys and Writing Macros
Guardian User’s Guide — 425266-001
5 -7
Using Your Function Keys
Passing a Value to an Alias Definition
The FILEINFO command (defined as F2) accepts a file name as an argument. By
default, when you press F2, you receive information on all files in your current
subvolume. To request information for a specific file, enter the name of a file:
and press F2. The TACL program displays:
Passing a Value to a Macro Definition
To pass values for dummy arguments to a macro definition:
1. Enter the command arguments.
2. Press the function key.
For example, to enter a TFORM command using F7:
1. Enter the name of the file to be printed (this name is substituted for %1%) and the
name of the spooler location (substituted for %2%):
2. Press F7.
This function-key definition is equivalent to:
3. Press F3 (the key defined to run PERUSE).
You can see that your file is spooled to $S.#PRINT2.
Suppose you created this macro function-key definition:
?SECTION F8 MACRO
STATUS %1%, %2% %3%
In this definition, the comma following the first dummy argument is required by the
STATUS command. The first dummy argument represents the range for the STATUS
command, the second represents the condition, and the third represents the value for the
indicated condition. (For details, see the syntax of the STATUS command in the TACL
Reference Manual.)
To use this key definition to obtain the status of all processes running in CPU 4 with a
priority of 150 or lower:
5> FERN.HERST
$GERT.FERN
Code EOF Last Modification Owner RWEP PExt SExt
HERST 101 12458 02-APR-87 10:55:02 8,56 "NNNN" 12 12
6> BELL PRINT2
6> TFORM / IN BELL, OUT $S.#PRINT2, NOWAIT /