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.
What's the best way to do this? In our table, there is a zip code column with entries formatted as 12345 for 5 digit zips and 123456789 for extended zips. For 9 digit zips, I want to make it 12345-6789, and leave the 5 digit zips without a hyphen. I tried this: ZIP/A12 = EDIT(ZIP,'99999-9999'); Which works for 9 digit zips but 5 digit zips look like this: 12345- (with the hyphen at the end), I don't want that. What's a way around this? I tried an IF with arclen but could never get it to work.This message has been edited. Last edited by: BDAVIS,
You could use the suggestion from TexasStingray or you could also use the length function to check the length of the value to decide what to do. Both achieve the same purpose.
Thanks!
Mickey
FOCUS/WebFOCUS 1990 - 2011
Posts: 995 | Location: Gaithersburg, MD, USA | Registered: May 07, 2003
I was going to add another way... But there's so many ways to do stuff in WebFOCUS (many of which are shown above)... It's Great... BTW: They're all in the documentation... Just imagine the possibilities... Then Code It.
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005