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.
It seems that if the inlength is less than the searchlength, the output is blank.
See code below. I was expecting the value of VAR2 to be “D”, just like the value of VAR1. But because the length of the data in VAR1 is less than the length of the string to be replaced, the output is blank.
I also found this problem with STRREP about two years ago and reported this to IBI in a case (80732511). After more than one year the only response on this case was just:
"Thank you for bringing this problem to our attention. We have reviewed it with our engineering staff and it has been determined that it will not be implemented in the WebFOCUS product. Therefore, we will close the case. If this decision substantially impacts your business, please discuss with your local account support team. Sincerely,"
And after a complaint of the closure of my case without resolving it: "The description of behavior at the beginning of the Using Functions Manual makes it pretty clear that errors introduced by incorrect parameter handling can produce problems and that the programmer is responsible for ensuring that the problems are dealt with."
After that experience with IBI I almost gave up and very rarely raise any Cases with them...
btw. In the docu of searchlength they state "Is the number of characters in the (shorter length) string to be replaced." - probably (shorter length) should be enough for us to know that the function returns an empty string once the searchstring is longer than the instring.