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


Chapter 3 Tools : LOG_BROWSE

LOG_BROWSE
Displays the contents of the message log. (C)
Invocation
CALL LOG_BROWSE
The message log appears as if you pressed PF2 from the workbench.
Usage Notes
See Also
TIBCO Object Service Broker Programming in Rules for information about the message log.
Example
The following set of rules lists the staff for a manager in the message log.
Rule Using LOG_BROWSE
The HIERARCHY rule executes STAFF and then saves the information in the message log by calling LOG_BROWSE.

 
HIERARCHY(NUMBER);
_
_ EXECUTE STAFF(NUMBER); | 1
_ CALL LOG_BROWSE; | 2
_ ---------------------------------------------------------------------

 
Rule Using MSGLOG
The STAFF example rule uses the message log to list all the people that work for the manager.

 
STAFF(NUM);
_
_ CALL MSGLOG('THE FOLLOWING EMPLOYEES WORK FOR MANAGER ' || | 1
_ NUM || ':'); |
_ GET EMPLOYEE WHERE MGR# = NUM; | 2
_ FORALL EMPLOYEE WHERE MGR# = NUM: | 3
_ CALL MSGLOG(EMPLOYEE.LNAME); |
_ END; |
_ ---------------------------------------------------------------------
_ ON GETFAIL:
_ CALL MSGLOG(NUM || ' IS NOT A MANAGER.');

 
Results of the STAFF Rule
If the manager number is valid, results such as the following appear in the message log:

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

 
 
 

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