TACL Reference Manual

Built-In Functions and Variables
HP NonStop TACL Reference Manual429513-018
9-354
#SETCONFIGURATION Built-In Function
If your installation uses $CMON processes and you want to take advantage of the
STOPONFEMODEMERR behavior, your $CMON program must be changed to
specifically include the new configuration parameter.
Example
?TACL MACRO
#FRAME
#PUSH configuration^error
==Make a duplicate TACL from the current TACL
FUP DUP $SYSTEM.SYSTEM.TACL, NEWTACL
==Secure the current TACL so no other users can access it.
FUP SECURE $SYSTEM.SYSTEM.TACL, “----”
==Configure the new TACL with the appropriate options
#SET configuration^error [#SETCONFIGURATION/BLINDLOGON OFF, &
CMONTIMEOUT 50/ NEWTACL]
[#IF configuration^error |THEN|
== Pick up individual error fields:
#PUSH tacl^error error^detail1 error^detail2
#SETMANY tacl^error error^detail1 error^detail2,
[#ERRORNUMBERS]
[#CASE [error^detail1]
|1| error [error^detail2] == File system error
|2| #OUTPUT *ERROR* Not user 255, 255 == Security violation
|3| #OUTPUT *ERROR* Incorrect TACL image == vproc error
|4| == Configuration error
#OUTPUT *ERROR* Unable to fully configure TACL image
|5| #OUTPUT *ERROR* Too many configuration options
|OTHERWISE| #OUTPUT *ERROR* #SETCONFIGURATION
== Unknown error
]
|ELSE| == No error in configuration
==Save the current TACL
#RENAME $SYSTEM.SYSTEM.TACL, $SYSTEM.SYSTEM.OLDTACL
==Make the newly configured TACL the standard TACL
#RENAME $SYSTEM.SYSTEM.NEWTACL, $SYSTEM.SYSTEM.TACL
]
#UNFRAME