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     Multiple records into one line

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Multiple records into one line
 Login/Join
 
Member
posted
I have a hold file in the following format;

TeamID Name Division
1 John Doe 01
1 Jayne Doe 01
1 Doe Doe 01
2 Billy Bob 55
2 Bobby Bill 55

What I need is a hold file that takes the hold file above, finds the alike Team IDs and writes them onto a single line like below. The number of team members may vary.

TeamName Division
John Doe & Jayne Doe & Doe Doe 01
Billy Bob & Bobby Bill 55

I appreciate any insight anyone can provide!
 
Posts: 4 | Location: Cincinnati | Registered: August 02, 2005Report This Post
<JG>
posted
Try the following

SET ASNAMES=ON
TABLE FILE DOEFILE
LIST NAME DIVISION
BY TEAMID
ON TABLE HOLD AS LISTED
END
-RUN
TABLE FILE LISTED
SUM MAX.LIST NOPRINT
BY TEAMID NOPRINT
SUM NAME
COMPUTE LINE/A3 = IF LIST LT C1 THEN ' & ' ELSE ' ' | DIVISION;
ACROSS LIST NOPRINT
BY TEAMID NOPRINT
ON TABLE SET HOLDLIST PRINTONLY
ON TABLE SET NODATA ' '
ON TABLE HOLD AS MERGED FORMAT ALPHA
END
 
Report 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     Multiple records into one line

Copyright © 1996-2020 Information Builders