Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved


Chapter 3 Tools : VALID_NAME

VALID_NAME
Determines if a given string satisfies the TIBCO Object Service Broker definition of an identifier. (F)
Invocation
verify = VALID_NAME(name)
 
On return, contains the value Y if name is a valid TIBCO Object Service Broker identifier or N if name is not valid.
Usage Notes
A valid TIBCO Object Service Broker name is a character string of up to 16 characters beginning with a letter (A - Z) or a special character ($ or #), and continuing with more letters, special characters, digits (0 - 9), or underscore characters (_).
A table name starting with an @ symbol denotes a table supplied with TIBCO Object Service Broker.
Example
The following rule verifies that the name you provide for a table instance is a valid TIBCO Object Service Broker name:

 
RULE EDITOR ===> SCROLL: P
VERIFY_PARM(PARMNAME);
_
 _---------------------------------------------------------------------------
_ VALID_NAME(PARMNAME) = 'Y'; | Y N
_ ------------------------------------------------------------+--------------
_ CALL INPUT_DATA(PARMNAME); | 1
_ CALL ENDMSG(PARMNAME || ' IS NOT A VALID PARAMETER NAME'); | 1
_ ---------------------------------------------------------------------------

 
If the parameter name is valid, INPUT_DATA is called to insert data into the table. If the parameter name is not valid, such as 4-5ITEMS, the user sees the message:
4-5ITEMS IS NOT A VALID PARAMETER NAME.

Copyright © Cloud Software Group, Inc. All Rights Reserved
Copyright © Cloud Software Group, Inc. All Rights Reserved