SET.TRIGGER

Top  Previous  Next

 

The SET.TRIGGER command sets, removes or displays the trigger function associated with a dynamic file.

 

 

Format

 

SET.TRIGGER file.name  function.name  {modes}Set trigger function

 

SET.TRIGGER file.name  ""Remove trigger function

 

SET.TRIGGER file.nameReport trigger function

 

where

 

file.nameis the file to be processed.

 

function.nameis the name of the catalogued trigger function.

 

modesis any combination of the following tokens indicating when the trigger will be executed.
PRE.WRITEBefore a write operation
PRE.DELETEBefore a delete operation
PRE.CLEARBefore a clear file operation
POST.WRITEAfter a write operation
POST.DELETEAfter a delete operation
POST.CLEARAfter a clear file operation
READAfter a read operation

If no modes are specified, the default is PRE.WRITE and PRE.DELETE.

 

 

The first form of the SET.TRIGGER command sets the name of the trigger function to be associated with the named file. Any existing trigger function is replaced by this action.

 

The second form of the SET.TRIGGER command removes the trigger function for the named file.

 

The third form of the SET.TRIGGER command displays the name and modes of the trigger function for the named file.