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


Chapter 3 Tools : CHANGERULE

CHANGERULE
Makes multiple text changes across multiple rules in a library. (CE)
Invocation
Do one of the following:
Usage Notes
With CHANGERULE, you can make multiple text changes to all or some of the rules in a library. It changes any occurrences of the string that appear as the following:
To use CHANGERULE, complete the following steps:
1.
2.
You can use an exact string or use the wildcard characters “?” (single character) or “*” (multiple characters) in your search string.
3.
You can use an exact string or use the wildcard characters “?” (single character) or “*” (multiple characters) in your search string.
4.
Changing is done on a token basis, so you cannot change an entire string like TABLENAME.FIELDNAME, although you can enter separate changes for TABLENAME and FIELDNAME.
5.
Example
This screen makes the following changes to all rules in library DOCMSGS2 with names like CUSTINFO*:

 
Global Change Rules Utility
Library: DOCMSGS2 Rules Like: custinfo* Unit Like: *
From Value To Value
---------------- ----------------
$cust___________ $customer_______
cust____________ customer________
num_____________ number__________
lname___________ lastname________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
________________ ________________
PFKEYS: 5=CHANGE 2=LOG 12=EXIT

 
Message Log
When you press PF5, the following text appears in the message log:

 
Preparing to change from $CUST to $CUSTOMER
Preparing to change from CUST to CUSTOMER
Preparing to change from NUM to NUMBER
Preparing to change from LNAME to LASTNAME
Start scan at 1:36:32
Checking rule CUSTINFO1
Token found
Token found
Token found
Rule CUSTINFO1 - Changed $CUST to $CUSTOMER
Rule CUSTINFO1 - Changed CUST to CUSTOMER
Rule CUSTINFO1 - Changed NUM to NUMBER
Checking rule CUSTINFO2
Token found
Token found
Token found
Rule CUSTINFO2 - Changed $CUST to $CUSTOMER
Rule CUSTINFO2 - Changed CUST to CUSTOMER
Rule CUSTINFO2 - Changed LNAME to LASTNAME
End scan at 1:36:33

 

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