Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 3 Tools : MSGLOG

MSGLOG
Inserts the specified string as a line in the TIBCO Object Service Broker message log. (C)
Invocation
CALL MSGLOG(string)
 
A character string to insert in the user log. Its syntax can be C (fixed-length character string), UN (Unicode), V (variable-length character string), or W (double-byte character).
Usage Notes
If the value of string is of syntax UN and it cannot be coerced to syntax V, MSGLOG inserts a Unicode literal.

Exceptions
 
The user log is full. LOGLIMIT is controlled by the MSGLOGMAX Execution Environment parameter.
Example
The STAFF Rule
The following rule finds all the employees of a particular manager and uses MSGLOG to list them in the message log.

 
RULE EDITOR ===> SCROLL: P
STAFF(NUM);
_
_ ---------------------------------------------------------------------------
_ ------------------------------------------------------------+--------------
_ CALL MSGLOG('THE FOLLOWING EMPLOYEES WORK FOR MANAGER ' || | 1
_ NUM || ':'); |
_ FORALL EMPLOYEE('MIDWEST') WHERE MGR# = NUM : | 2
_ CALL MSGLOG(EMPLOYEE.LNAME); |
_ END; |
_ ---------------------------------------------------------------------------

 
Results of the STAFF Rule
Executing the rule for manager 79912 produces the following message log:

 
----------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL ===> P
THE FOLLOWING EMPLOYEES WORK FOR MANAGER 79912:
SMITH
HRODEK
SCHULTZ
BOIVIN

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved