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     Concatenating numerous fields into Hold File

Read-Only Read-Only Topic
Go
Search
Notify
Tools
Concatenating numerous fields into Hold File
 Login/Join
 
Member
posted
I have a table that lists all emails assigned to particular listings. There can be one email or many emails....I need to concatenate all emails associated to each unique listing address so that I can pull in the concatenated field into a larger report.

I tried this using this method:

COMPUTE VALUE/A1000V = IF PROV_LOCATION_ID EQ LAST PROV_LOCATION_ID THEN ADDRESS || SUBSTR(1000, LAST VALUE, 1, 775, 775, 'A775') ELSE ADDRESS;

however, I'm seeing every iteration of the concatenate and not just the final one in the hold file.

How can I get a table with just one instance of the final concatenation?

Thanks,
Cathie


7.6.4
Windows
Excel, HTML



 
Posts: 14 | Location: Austin, Texas | Registered: March 17, 2008Report This Post
Guru
posted Hide Post
are you doing a
 
SUM 
COMPUTE VALUE......
BY PROV_LOCATION_ID
 


If you SUM and not PRINT you should get one VALUE per PROV_LOCATION_ID


(Prod: WebFOCUS 7.7.03: Win 2008 & AIX hub/Servlet Mode; sub: AS/400 JDE; mostly Self Serve; DBs: Oracle, JDE, SQLServer; various output formats)
 
Posts: 391 | Location: California | Registered: April 14, 2003Report This Post
Virtuoso
posted Hide Post
Cathie,

It depends if your file is sorted by PROV_LOCATION_ID or not.

If it is here is an example using the CAR file:
  
DEFINE FILE CAR
MODELS/A200=IF CAR EQ LAST CAR THEN MODEL || ' ' | SUBSTR(1000, LAST MODELS, 1, 170, 170, 'A170') ELSE MODEL; 
END
TABLE FILE CAR
SUM LST.MODELS
BY CAR
END


If it isn't then you can do the following:
  
TABLE FILE CAR
PRINT
MODEL
COMPUTE MODELS/A200=IF CAR EQ LAST CAR THEN MODEL || ' ' | SUBSTR(1000, LAST MODELS, 1, 170, 170, 'A170') ELSE MODEL; 
BY CAR
ON TABLE HOLD
END
TABLE FILE HOLD
SUM LST.MODELS
BY CAR
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
Master
posted Hide Post
quote:
COMPUTE VALUE/A1000V = IF PROV_LOCATION_ID EQ LAST PROV_LOCATION_ID THEN ADDRESS || SUBSTR(1000, LAST VALUE, 1, 775, 775, 'A775') ELSE ADDRESS;


Do you want any kind of a break between addresses? This would read better if you changed the compute to:

COMPUTE VALUE/A1000V=IF PROV_LOCATION_ID EQ LAST PROV_LOCATION_ID THEN ADDRESS || '; ' | SUBSTR(1000, LAST VALUE, 1, 775, 775, 'A775') ELSE ADDRESS;

This message has been edited. Last edited by: PBrightwell,


Pat
WF 7.6.8, AIX, AS400, NT
AS400 FOCUS, AIX FOCUS,
Oracle, DB2, JDE, Lotus Notes
 
Posts: 755 | Location: TX | Registered: September 25, 2007Report This Post
Member
posted Hide Post
Thanks, Danny. Your suggestion worked perfectly!

Cathie


7.6.4
Windows
Excel, HTML



 
Posts: 14 | Location: Austin, Texas | Registered: March 17, 2008Report This Post
Virtuoso
posted Hide Post
Cathie,

You are welcome. Will you be coming to the summit in Nashville? I shall be there.


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
Member
posted Hide Post
I wish I could be there....there's so much to learn. This forum has been a huge help though.
I'm hoping the "powers that be" will allow us to go next year!

Thanks again.


7.6.4
Windows
Excel, HTML



 
Posts: 14 | Location: Austin, Texas | Registered: March 17, 2008Report 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     Concatenating numerous fields into Hold File

Copyright © 1996-2020 Information Builders