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.
in One Filed i need upper case(FIRST/LAST/) and remaining as first letter as uppercase
I have a Column from DB below example_1 and i need output like as Example_2
Input Message example_1 -SET &MYNAME = 'first/last/description/this is text message's/this message has been edited.';
output Message example_2 FIRST/LAST/Description/This Is Text Message's/This Message Has Been Edited.
every values is different based on second forward slash symbol "/" how to extract part of this Like first/last/ how to extract still second forward slash symbol "/"This message has been edited. Last edited by: Tamra,
WebFOCUS 8202
Posts: 61 | Location: India | Registered: March 24, 2014
My personal thinking : you need to search and look at available functions. Then, play with them. Since I don't think that it will have a single and simple solution due to your various data, you need to do your research except if the PROPER() function (which I can't find in doc) do the trick for you.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
Originally posted by Danny-SRL: How many forward slashes in your data? 4? variable?
Values are coming form database ,forward slashes are not constant its dyanimic values, but from still 2nd slash i can keep in one variable. but from 2 slashes still end how to take in one variable
Please help me
WebFOCUS 8202
Posts: 61 | Location: India | Registered: March 24, 2014
use the POSIT function to get the position of the 1st slash use the POSIT function again, starting with the position of the 1st slash+1, to find the position of the 2nd slash. if the POSIT function returns 0, then there are no more slashes. then use the SUBSTR function to capture the string beginning with the value of the 2nd slash + 1
In Focus since 1979///7706m/5 ;wintel 2008/64;OAM security; Oracle db, ///MRE/BID
Posts: 3811 | Location: Manhattan | Registered: October 28, 2003
I think that what Developer mean is that the forward slash may appear anywhere in the string (column field data) in a undetermined number of time.
So what he need from us is to built a function that will loop the whole string and format it.
LCWORD partially do the trick but as his first sample :
first/last/description/this is text message's/this message has been edited
Once LCWORD is applied become :
First/Last/Description/This Is Text Message'S/This Message Has Been Edited
The issue is with Message'S where the "s" is put in capital because of the quote that is "detected" as the beginning of a new word which is not the case.
So not only have to deal with the slash's, but with special characters... No easy way to solve this I think. I think that with all the function that we give (and others that are in the manuals), it's now possible to figure a combination that may suit the need.
WF versions : Prod 8.2.04M gen 33, Dev 8.2.04M gen 33, OS : Windows, DB : MSSQL, Outputs : HTML, Excel, PDF In Focus since 2007
Posts: 2409 | Location: Montreal Area, Qc, CA | Registered: September 25, 2013
i can use LCWORD2 function this type of "Message'S"
quote:
Originally posted by MartinY: I think that what Developer mean is that the forward slash may appear anywhere in the string (column field data) in a undetermined number of time.
So what he need from us is to built a function that will loop the whole string and format it.
LCWORD partially do the trick but as his first sample :
first/last/description/this is text message's/this message has been edited
Once LCWORD is applied become :
First/Last/Description/This Is Text Message'S/This Message Has Been Edited
The issue is with Message'S where the "s" is put in capital because of the quote that is "detected" as the beginning of a new word which is not the case.
So not only have to deal with the slash's, but with special characters... No easy way to solve this I think. I think that with all the function that we give (and others that are in the manuals), it's now possible to figure a combination that may suit the need.
WebFOCUS 8202
Posts: 61 | Location: India | Registered: March 24, 2014