logo
Powered by QM on a Rpi server
Home
About OpenQM
Sales and Downloads
Help and Support
About
Login

KnowledgeBase 00110: Changing the Phantom Log Name

Last updated: 22 Jul 2016
Applies to: All versions
Search  
Top level index       Full Index Search Tips
Previous article     Next article

This 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_time
where 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 Log

The PHANTOM command supports a NO.LOG option

   PHANTOM NO.LOG command
Using 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 Log

The 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 Name

The 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 Articles

None.



Please tell us if this article was helpful
Very     Slightly     Not at all
Comments
Email (optional)