As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.
Join the TIBCO Community TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.
From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
Request access to the private WebFOCUS User Group (login required) to network with fellow members.
Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.
When I use a like character mask in a filter I can put a range of numbers or letters that I want the mask to look for in a specific position of a string.
Example: WHERE SLOT LIKE '%[a-z]';
The above will return anything that ends in a letter "a" through "z", but when I try using a range in an if statement it throws an error.
Example: IF EDIT(SLOT, '$$$$$$9') EQ ' ' OR EDIT(SLOT, '$$$$$9$') LIKE '[a-z]' THEN SLOT ELSE NewSlot
Rather than checking if the character is "a" through "z" like it would in a filter it's checking if the character is literally like "[a-z]".
I assume this means the functionality just isn't there, but I was wondering if anyone knew a way to get this to work, or if my syntax is just wrong.
Thanks!This message has been edited. Last edited by: Cimmerian,
WebFocus 8.2, IA+, Windows 10, HTML
Posts: 56 | Location: UT | Registered: December 01, 2015
You're using regular expressions al WHERE statement. Although supported by various RDBM systems, it's not standard SQL.
Webfocus does however have a function called: PATTERN
quote:
The PATTERN function examines a source string and produces a pattern that indicates the sequence of numbers, uppercase letters, and lowercase letters in the source string. This function is useful for examining data to make sure that it follows a standard pattern.
In the output pattern:
Any character from the input that represents a single-byte digit becomes the character 9.
Any character that represents an uppercase letter becomes A, and any character that represents a lowercase letter becomes a. For European NLS mode (Western Europe, Central Europe), A and a are extended to apply to accented alphabets.
For Japanese, double-byte characters and Hankaku-katakana become C (uppercase). Note that double-byte includes Hiragana, Katakana, Kanji, full-width alphabets, full-width numbers, and full-width symbols. This means that all double-byte letters such as Chinese and Korean are also represented as C.
Special characters remain unchanged.
An unprintable character becomes the character X.
That might help?
Greets, Dave
_____________________ WF: 8.0.0.9 > going 8.2.0.5
Posts: 668 | Location: Veghel, The Netherlands | Registered: February 16, 2010