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


Chapter 3 Tools : KEYWORDSEARCH

KEYWORDSEARCH
Searches the keyword index of a default library to answer a query. (C)
Invocation
CALL KEYWORDSEARCH(querystring, object_type)
 
A query string, which can consist of one or more of the following: names or keywords (the wild card characters asterisk (*) and question mark (?) can be used if they are enclosed in single quotations), the AND (&) and OR (|) logical operators, the NOT operator (¬), and parentheses symbols “(” and “)”.
The entry must be one of: GLOBALFIELD, LIBRARY, OBJECTSET, REPORT, RULE, SCREEN, TABLE, or ALL.
Usage Notes
SEARCH is the interactive version of this tool. It also searches the cross reference index.
The local variable MSG must be declared by the calling rule.

Exceptions
 
Raised if there is a syntax error in the querystring, if the value for querystring is invalid or if the value for object_type is invalid. A message is placed in MSG for any of these cases.
Example
The following rule searches for the keyword PROCESS_PFKEY and sends the results to the message log:

 
KEYWORDSEARCH_1;
LOCAL MSG;
_ ------------------------------------------------------------------------
_ ------------------------------------------------------------+-----------
_ CALL KEYWORDSEARCH('PROCESS_PFKEY', 'ALL'); | 1
_ CALL $RESETPRINT(60, 80, 1 'SCR'); | 2
_ FORALL @RESULTLIST : | 3
_ CALL $PRINTLINE(PAD(@RESULTLIST.INDEX, 4, ' ', 'R') || |
_ PAD(@RESULTLIST.NAME, 18, ' ', 'R') || ' ' || |
_ @RESULTLIST.TYPE); |
_ END;
_ ------------------------------------------------------------------------

 
Output for Rule KEYWORDSEARCH_1
Pressing PF2 displays the following screen:

 
----------------------- INFORMATIONAL MESSAGE LOG --------------------
COMMAND ===> SCROLL: P
---------------------------------NEW PAGE------------------------------
1 GEN_TED RULE
1 SCRIPT RULE
1 TED RULE

 

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