![]() |
Powered by QM on a Rpi server |
|
KnowledgeBase 00110: Changing the Phantom Log NameThis article was originally published as a Tip of the Week. A phantom process normally produces a log record in the $COMO file with a name of the form PHuserno_date_timewhere userno is the phantom user number and date and time are six digit representations of the date (ddmmyy) and time (hhmmss) respectively. It is sometimes desireable to use an alternative log location, perhaps for compatibility with other multivalue products. Supressing the LogThe PHANTOM command supports a NO.LOG option PHANTOM NO.LOG commandUsing this option suppresses the log file entirely although the phantom process can go on to use the COMO command internally to start a new log. Changing the LogThe phantom log file is simply an automatically enabled COMO file. It is therefore possible for a phantom process to terminate the log with which it starts and open a new log by use of the COMO command. Using an Alternative NameThe default location of the log can be modified by cataloguing a subroutine named PHLOGNAME that takes two arguments. The first is used to return the log file and record names, the second is the command to be executed by the phantom process. The value returned by the subroutine through its first argument should be the name of an existing file and a record name, separated by a single space. Related ArticlesNone. |