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


Chapter 3 Tools : SEARCHLIB

SEARCHLIB
Searches all rules or specified rules in a library for a given string. (CE)
Invocation
Do one of the following:
Usage Notes
SEARCHLIB searches all the rules or a set of specified rules in a library for a search string and then returns the names of rules containing the string. To use SEARCHLIB, complete the following steps:
1.
2.
The type of search determines what kind of search string you can enter. Refer to step 5 below for more information on search types.
You can search for an exact token or string or use the wildcard characters “?” (single character) or “*” (multiple characters) in your search string.
3.
You can search for a specific rule or use the wildcard characters “?” (single character) or “*” (multiple characters) in your rule name.
4.
You can search for a specific unit or use the wildcard characters “?” (single character) or “*” (multiple characters) in your unit name.
5.
There are two types of searches available:
PF6 or Enter
Searches for a given string anywhere within a rule. A fast search works as though you entered *searchstring*, and therefore can return false positives (for example, entering MESSAGE as the search string could return a rule containing the token MESSAGES).
Because a fast search searches for a string rather than a token, it can find any string, including quoted strings that include spaces. However, it cannot find any of the following:
TABLENAME.FIELDNAME constructions (though it can find either TABLENAME or FIELDNAME individually)
Because a slow search searches for a token rather than a string, you cannot use it to find extended strings containing spaces or TABLENAME.FIELDNAME constructions. A slow search does find reserved words such as CALL or EXECUTE, and numeric values. For large libraries, a slow search can take significantly longer than a fast search.
Note  The numeric value must be entered exactly as it appears in the Rule Editor.
6.
From the screen containing the list of returned rules, you can invoke the Rule Editor to display or edit the rules by placing your cursor on the row containing the rule name and pressing Enter or by typing any character in the command line to the left of the rule name and pressing Enter.
Example
The following screen shows a slow search performed for the search string “messages” on rules named “TEST*” in library STANDARD:

 
Rule Analyser and Search Utility
 
Search Library: STANDARD________ For Token/String Like: messages________ (*/?)
In Rules Like: TEST*___________ And With A Unit Like: *_______________
Case Sensitive Search N (Y/N)
 
NAME DATE TIME UNIT MODIFIER CREATEDATE CREATOR
---------------- ---------- ---- -------- -------- ---------- --------
_ TEST2 2000-03-26 0859 BAD00 USR40 2000-03-26 BAD00
 
_ TEST3 2000-03-26 0859 BAD00 USR40 2000-03-26 BAD00
 
 
 
 
 
 
 
 
 
 
 
PFKEYS: 5=SLOW-SEARCH 6=FAST-SEARCH ENTER=EDIT 3=END 12=EXIT
Found 2 rules in a SLOW search

 

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