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     [SOLVED] Concatenating rows of data into a single column

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Concatenating rows of data into a single column
 Login/Join
 
Member
posted
I am wanting to take for example the following fields item number and model. Currently, the data looks like the following:

Item Number Model
a12345-123 WG
a12345-123 WA
a12345-123 WD

I want the data to look like this:

Item Number Model
a12345-123 WG, WA, WD

or

Item Number Model
a12345-123 WG WA WD

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


Webfocus product release 8.1
Service Pack .5
Build/Gen Number 81
 
Posts: 2 | Registered: February 19, 2018Report This Post
Virtuoso
posted Hide Post
Bryant

First of all welcome to Focal Point! It is a great place to get answers to your development questions.

This is untested but try

DEFINE ITEM_MODEL/A100=IF ITEM_NUMBER EQ LAST ITEM NUMBER THEN ITEM_MODEL | ' ' | MODEL ELSE ITEM_NUMBER | ' ' | MODEL;


I don't know your real field names but hopefully you get the gist...


Thank you for using Focal Point!

Chuck Wolff - Focal Point Moderator
WebFOCUS 7x and 8x, Windows, Linux All output Formats
 
Posts: 2127 | Location: Customer Support | Registered: April 12, 2005Report This Post
Virtuoso
posted Hide Post
  
TABLE FILE filename
LIST MODEL BY ITEM_NUMBER
ON TABLE HOLD
END
TABLE FILE HOLD
SUM MODEL
BY ITEM_NUMBER
ACROSS LIST NOPRINT
END


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Platinum Member
posted Hide Post
TABLE FILE CAR
PRINT CAR NOPRINT
COMPUTE CNTR/I5 = IF COUNTRY EQ LAST COUNTRY THEN CNTR + 1 ELSE 1; NOPRINT
COMPUTE CAR_LIT/A200V  = IF COUNTRY EQ LAST COUNTRY THEN LAST CAR_LIT || (', ' | CAR) ELSE CAR;
BY COUNTRY
BY TOTAL HIGHEST 1 CNTR NOPRINT
END


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Member
posted Hide Post
Thank you very much for the input. Report looks the way I needed it to.


Webfocus product release 8.1
Service Pack .5
Build/Gen Number 81
 
Posts: 2 | Registered: February 19, 2018Report 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     [SOLVED] Concatenating rows of data into a single column

Copyright © 1996-2020 Information Builders