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] Issue with merge records.

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Issue with merge records.
 Login/Join
 
Platinum Member
posted
I have this issue and this is the sample code:
  
TABLE FILE HOLD_MAT_RT 
	 PRINT LTEXT AS 'Long Text'
	 BY MATNR AS 'Material Number'
	 BY MAKTX AS 'Mat. Description'
ON TABLE PCHOLD FORMAT HTML
END

The output I got is like this:

Material Number   Mat. Description    Long Text
11111             AAAAA               Text1Line1
                                      Text1Line2
                                      Text1Line3
22222             BBBBB               Text2Line1
                                      Text2Line2
                                      Text2Line3

The issue is for material 11111 I have 3 lines of Long Text in 3 separate records. However, my customer want me to merge these 3 records to 1 record. I can display it as 3 lines but when I export them to excel file, it need to be merged into 1 cell. I am not sure is that possible to implement this feature or not. Anybody can give me idea ? 
 

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


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Guru
posted Hide Post
WRAP? SQUEEZE? doesn't help you on this? Data length? Is it possible for you to reproduce using CAR master?


-Rifaz

WebFOCUS 7.7.x and 8.x
 
Posts: 406 | Location: India | Registered: June 13, 2013Report This Post
Platinum Member
posted Hide Post
hainguyen,

Can you ask your customer if column Long Text can be all in one column but broken up by commas.

Example:

  
TABLE FILE CAR
PRINT
BODYTYPE
BY COUNTRY
BY CAR
ON TABLE HOLD AS CAR1
END

DEFINE FILE CAR1
CONT/A1    = IF COUNTRY  NE LAST COUNTRY  THEN 'R' ELSE
             IF CAR      NE LAST CAR      THEN 'R' ELSE
             IF BODYTYPE EQ LAST BODYTYPE THEN 'Y' ELSE 'N';
SHOW/A300V = IF CONT EQ 'R' THEN BODYTYPE ELSE
             IF CONT EQ 'Y' THEN SHOW ELSE SHOW | ', ' | BODYTYPE;
END

TABLE FILE CAR1
SUM
SHOW
BY COUNTRY
BY CAR
END


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: 121 | Location: California | Registered: June 19, 2008Report This Post
Platinum Member
posted Hide Post
Instead of concatenating with commas, can we just concatenate with space. I don't think they will agree with commas.


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report This Post
Platinum Member
posted Hide Post
nainguyen,

Just replace the below piece of code.

  
SHOW/A300V = IF CONT EQ 'R' THEN BODYTYPE ELSE
             IF CONT EQ 'Y' THEN SHOW ELSE SHOW | ' ' | BODYTYPE;


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: 121 | Location: California | Registered: June 19, 2008Report This Post
Virtuoso
posted Hide Post
Look in your masterfile. It's likely that MAKTX is defined as a TX50 field. Try using a "big" A size, such as A2000 and test to see what happens.



Prod/Dev: WF Server 8008/Win 2008 - WF Client 8008/Win 2008 - Dev. Studio: 8008/Windows 7 - DBMS: Oracle 11g Rel 2
Test: Dev. Studio 8008 /Windows 7 (Local) Output:HTML, EXL2K.
 
Posts: 1533 | Registered: August 12, 2005Report This Post
Platinum Member
posted Hide Post
Thanks prodrigu, your solution is awesome. Thanks a lot.
Thanks njsden, my issue is solved by prodrigu's solution.

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


WebFOCUS 7.7.03
Windows, All Outputs
 
Posts: 125 | Registered: June 17, 2013Report 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] Issue with merge records.

Copyright © 1996-2020 Information Builders