ViewPoint Manual
Customizing ViewPoint
ViewPoint Manual—426801-001
6-17
Adding TACL Macros and Routines
Example 6-5 shows a TACL routine to examine all event messages that the operator has 
saved in the ViewPoint clipboard file, query the Distributed Name Service (DNS) for 
information on the device names in the event message, and display the resulting 
information. The routine DNSINFO calls another routine named UTILS:DNSINFO, 
which returns DNS information on the device names in one line from the clipboard file.
Example 6-4. Sample TACL Macros for Background Processes
?SECTION dpstart MACRO
==** dpstart
==** Start PATHCOM, CMI, and DNSCOM.
DP PATHCOM /PNAME pcom/ $ZVPT
DP CMI /PNAME cm/
DP DNSCOM /PNAME dnsc/
?SECTION dpstatus MACRO
==** dpdns
==** List status of PATHMON, CMP, and DNS.
pcom STATUS PATHMON
cm STATUS CMP
dnsc STATUS
?SECTION dpstop MACRO
==** dpstop
==** Stop PATHCOM, CMI, and DNSCOM.
UNDP pcom cm dnsc 
Note. Before executing these macros, you must indicate that the Process Definition 
commands are in the :UTILS:DP directory. To do this, you can enter the following command at 
the TACL prompt:
USE :UTILS:DP
Or, you can include this command in your logon TACLCSTM file.










