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.
Hi, I'm a new WebFOCUS developer. I need to concatenate two fields FIRSTNAME/A50 AND LASTNAME/A50 into one field (A/30) for printing. Can anyone help? Thanks.This message has been edited. Last edited by: Kathleen Butler,
I would suggest getting a soft copy of all the manuals, the functions manual in particular.
What you need to do is use the concatenate functionality.
| is a soft concatenate || is a hard concatenate
The soft concatenate just adds to the end of the previous text, including trailing spaces. The hard concatenate shifts the trailing spaces to the end of the concatenated text.
e.g.
DEFINE FILE X
FULL_NAME/A101 = FIRSTNAME || (' ' | LASTNAME) ;
END
With the use of the parentheses, you control what happens when.
Just one thing to add to Waz's excellent explanation - if you need to limit the final output to 30 characters, then you can use the EDIT function to do so:
DEFINE FILE X
FULL_NAME_LONG/A101 = FIRSTNAME || (' ' | LASTNAME) ;
FULL_NAME_SHORT/A30 = EDIT(FULL_NAME_LONG,'999999999999999999999999999999$');
END
WebFOCUS 7.7.05
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007