beautypg.com

Using a file starting with a ?tacl directive, Using your macros, Passing a value to a macro – HP NonStop G-Series User Manual

Page 87

background image

Defining Function Keys and Writing Macros

Guardian User’s Guide 425266-001

5- 11

Using a File Starting With a ?TACL Directive

Using Your Macros

After you load your macro definitions into TACL memory, you can use your macros.

For example, when you type F, the TACL program executes the FILEINFO command:

Passing a Value to a Macro

Unlike for function keys, to pass an argument to a macro, enter the macro name and then
its arguments.

For example, to pass the specific name of a file to your FILEINFO macro:

Using a File Starting With a ?TACL Directive

You can also write a TACL macro by entering the ?TACL MACRO directive and the
commands you want the macro to perform into an EDIT file (file code 101).

To create a macro that performs the WHO command.

To execute the macro, enter:

Files that contain a ?TACL MACRO directive cannot be loaded into memory, as library
files are. You can store only one macro definition in a file that starts with the ?TACL
MACRO directive. Instead, use the ?SECTION directive to define macros in files that
you plan to load.

12> F

$GERT.FERN
Code EOF Last Modification Owner RWEP PExt SExt
HERST 101 12458 02-APR-92 10:55:02 8,56 "NNNN" 12 12
CANDLE 101 16230 07-OCT-92 13:31:36 6,66 "OOOO" 2 2

11> F CANDLE

$GERT.STEIN
Code EOF Last Modification Owner RWEP PExt SExt
CANDLE 101 16230 7-OCT-92 13:31:36 6,66 "OOOO" 2 2

15> TEDIT MYSTAT

?TACL MACRO
WHO

16> RUN MYSTAT

This manual is related to the following products: