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 /
Содержание Guardian
Страница 24: ...About This Guide Guardian User s Guide 425266 001 xxii Your Comments Invited ...
Страница 30: ...Part I Using the Compaq Tandem Advanced Command Language TACL Guardian User s Guide 425266 001 ...
Страница 100: ...Part II Managing Files Using the File Utility Program FUP Guardian User s Guide 425266 001 ...
Страница 146: ...Part III Managing Disk and Tape Processes Guardian User s Guide 425266 001 ...
Страница 232: ...Backing Up and Restoring Disk Information Guardian User s Guide 425266 001 11 26 Backcopy Examples ...
Страница 234: ...Part IV Using the Spooler and Its Utilities Guardian User s Guide 425266 001 ...
Страница 248: ...Introduction to the Spooler Guardian User s Guide 425266 001 12 14 Sending Output to a SPOOL DEFINE ...
Страница 300: ...Performing Routine Spooler Operations Using Spoolcom Guardian User s Guide 425266 001 14 38 Problem Solving Summary ...
Страница 322: ...Part V Security Features and Other Guardian Utilities Guardian User s Guide 425266 001 ...
Страница 368: ...Monitoring Event Messages Guardian User s Guide 425266 001 17 14 Using the Event Viewer ...
Страница 378: ...Displaying Version and System Information Guardian User s Guide 425266 001 18 10 Task 2 Interpret SYSINFO Output ...
Страница 410: ...Monitoring Hardware Components Guardian User s Guide 425266 001 19 32 Automating System Monitoring ...
Страница 460: ...Index Guardian User s Guide 425266 001 Index 24 Special Characters ...