Focal Point Banner


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.


Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Appending BY field value to get result in a single row

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Appending BY field value to get result in a single row
 Login/Join
 
Platinum Member
posted
Hi,

I have a table request from a cluster join.
The output looks as shown below.

Col1 Col2 Col3 Col4 Col5 Col6 Col7
xx    yy   zz   aa   bb   cc   dd
xx    yy   zz   aa   ss   cc   dd 


Only the Col5 is different and upon checking with the database team,it turns that there is nothing wrong with the data.
How can i display only one row with bb and ss appended in Col5.?

If someone can provide any logic to that ,it would be helpful.

This message has been edited. Last edited by: FP Mod Chuck,


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
I've no idea what you're trying to do. Could you show us the code and expand on the issue you've run into?


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Platinum Member
posted Hide Post
Appologies for the lack of detail.


Now when i do
 
TABLE FILE DEMO_CLUSTER
BY Col1
BY Col2
BY Col3
BY Col4
BY Col5
BY Col6
BY Col7
END

I get two rows of data as shown above.
I don't have an actual code to show the output,because it is complex and involves lots of defines and computes.


I am trying to print the out the result into a single row as below.

  
Col1 Col2 Col3 Col4 Col5    Col6 Col7
xx    yy   zz   aa   bb|ss   cc   dd


WF8206,Windows 7,8,10
HTM,PDF,EXCEL
 
Posts: 229 | Location: MI | Registered: September 13, 2017Report This Post
Virtuoso
posted Hide Post
Try creating a DEFINE that checks the last value of the column and if it's not the same, concatenates it to itself. Something like
  
IF COL5 NE LAST COL5 THEN ....


WebFOCUS 8206, Unix, Windows
 
Posts: 1853 | Location: New York City | Registered: December 30, 2015Report This Post
Expert
posted Hide Post
Good one. I was about to suggest that... And use the DFINEd field instead of COL5.
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [CLOSED] Appending BY field value to get result in a single row

Copyright © 1996-2020 Information Builders