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.
Does anyone know a function that counts how many characters are in a field? So for example I have a field name called indexfield that contains the value '2013q1'. I want a function that would return 6 in this case. Any advice is appreciated.
Thank you RKThis message has been edited. Last edited by: <Kathryn Henning>,
WebFOCUS 8 Windows, All Outputs
Posts: 13 | Location: Long Island, New York | Registered: June 23, 2015
Tried using ARGLEN couldn't really figure it out. I would really appreciate if someone provided an example of how the function works and how to use it based on the information I previously provided. Thank you in advance
WebFOCUS 8 Windows, All Outputs
Posts: 13 | Location: Long Island, New York | Registered: June 23, 2015
Thank you for all your help. Worked out perfectly. I used this with an edit function to measure the length of a string and pull out characters similar to how you would use left, len, and right in excel.
WebFOCUS 8 Windows, All Outputs
Posts: 13 | Location: Long Island, New York | Registered: June 23, 2015
Waz, what is the path to the entry point of the Masterindex? It seems different than http://infocenter.ibi.com/wf81rel/index.jsp that I have been using to research syntax questions.
WebFOCUS 7.7.05 (Someday 8) Windows 7, All Outputs In Focus since 1983.
Some of the functions that are described in the documentation Waz so kindly provided appear to be NOT available in v8.0.08, v8.0.09 and v8.0.10. I assume they make their appearance in v8.1.04. It's nice that they are optimized for SQL.
Searching for "CHAR_LENGTH" points you to
WebFOCUS Release 8.0 Versions 10 and 09 > DataMigrator Functions > SQL Character Functions.
I suppose those of us unfortunates that are not on v8.1.04 or newer can give these new functions a try - perhaps they work but are hidden from us.
Thanks Waz!
Francis
Give me code, or give me retirement. In FOCUS since 1991
Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
Don't forget that you can use SQL.function, certainly against MS SQL or Oracle.
I use SQL.SUBSTR for MS SQL a lot, for, as Waz suggests, the parameters are easier to recall than the WebFOCUS SUBSTR function ... Until you can use the newer SUBSTRING function.
If the function that you want isn't supported? Then try creating your own using DEFNE FUNCTION. Just make sure that you trap the SQL to be sure that it is parsed OK into SQL and that it is efficient.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
We are going to 8.1.0.3. So I can use some and not others probably. I just wanted to see more topics than what he posted. I also found I could vary the level in the URL and get an answer for the section he posted. http://documentation.informati...n/source/topic64.htm
So I was trying to find the Welcome page for what he posted? Got anything Waz?This message has been edited. Last edited by: Kevin W,
WebFOCUS 7.7.05 (Someday 8) Windows 7, All Outputs In Focus since 1983.