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     concatenation [Solved]

Read-Only Read-Only Topic
Go
Search
Notify
Tools
concatenation [Solved]
 Login/Join
 
Silver Member
posted
I have a requirement where, I need to concatenate all the values of a field under a group.

In the below example
TABLE FILE XXX
PRINT LASTTOKEN
BY GROUPID
END

I need to concatenate all the values of LASTTOKEN

I tried the following:
TABLE FILE XXX
PRINT LASTTOKEN
COMPUTE MOD2/A200 =
IF GROUPID NE LAST GROUPID THEN LASTTOKEN|','|SUBSTR(200, LAST MOD2, 1, 176, 176, 'A176')
ELSE 'LASTTOKEN' ;
BY GROUPID
END

This works fine until line 12 of the output.After line 12, the new 'LASTTOKEN' is added but the initial vale is not displayed. How do I increase the display size? all that I tried dint work for me.
The maximum lines of outpu is 32
GROUPID LASTTOKEN MOD2
CCT10010401 401 401 ,
CCT10010402 402 402 ,401 ,
CCT10010403 403 403 ,402 ,401 ,
CCT10010404 404 404 ,403 ,402 ,401 ,
CCT10010405 405 405 ,404 ,403 ,402 ,401 ,
CCT10010406 406 406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010601 601 601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010602 602 602 ,601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010A23 A23 A23 ,602 ,601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010A41 A41 A41 ,A23 ,602 ,601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010A52 A52 A52 ,A41 ,A23 ,602 ,601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010B23 B23 B23 ,A52 ,A41 ,A23 ,602 ,601 ,406 ,405 ,404 ,403 ,402 ,401 ,
CCT10010B52 B52 B52 ,B23 ,A52 ,A41 ,A23 ,602 ,601 ,406 ,405 ,404 ,403 ,402 ,
CCT10010C23 C23 C23 ,B52 ,B23 ,A52 ,A41 ,A23 ,602 ,601 ,406 ,405 ,404 ,403 ,

This message has been edited. Last edited by: Shubha Manjit,


WebFOCUS 7.6
Windows, All Outputs
 
Posts: 29 | Registered: February 21, 2011Report This Post
Virtuoso
posted Hide Post
Use Variable fields, for example:
TABLE FILE CAR
PRINT SEATS
COMPUTE NEW/A200V = EDIT(SEATS) | ',' | NEW;
BY COUNTRY
END 


It makes life a lot easier.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report 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     concatenation [Solved]

Copyright © 1996-2020 Information Builders