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] creating csv field

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] creating csv field
 Login/Join
 
Member
posted
I'm trying to create a single csv field that builds up as records are output, so that the last record would display a csv containing all the data from previous records within a given group.

I thought I could use something similar to the below but this gives me a format error with the MOD_CSV compute which I dont understand.

TABLE FILE CAR
PRINT
MODEL
COMPUTE CNTR/I3=IF COUNTRY EQ LAST COUNTRY THEN CNTR + 1 ELSE 1;
COMPUTE LAST_MODEL/A50 = IF CNTR EQ 1 THEN ' ' ELSE LAST MODEL;
COMPUTE MOD_CSV/A1000 = IF CNTR EQ 1 THEN MODEL ELSE MOD_CSV||','||LAST_MODEL;
BY COUNTRY
BY MODEL NOPRINT
END

Can someone explain why this doesnt work?

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


AIX Server
WebFocus 7.6.11
 
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 2008Report This Post
Virtuoso
posted Hide Post
Your COMPUTE for MOD_CSV is trying to write 1050 bytes (1000 + 50) into a 1000 byte field. Try changing your format from A1000 to A1000V. The 'V' makes the field variable length.


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
Member
posted Hide Post
Thanks Dan - thats solved it.


AIX Server
WebFocus 7.6.11
 
Posts: 10 | Location: Nottingham, UK | Registered: November 20, 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     [SOLVED] creating csv field

Copyright © 1996-2020 Information Builders