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     [CLOSED] Report Format Question

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] Report Format Question
 Login/Join
 
Member
posted
I have the following report format:

.........COLA...COLB...COLC....COLD
BYA
BYB

What I need is:

.........COLA...COLB
BYA
BYB

.........COLC...COLD
BYA
BYB


All columns have different formats.

Can it be done with in one pass? please help.

This message has been edited. Last edited by: Kerry,
 
Posts: 27 | Registered: April 18, 2008Report This Post
Expert
posted Hide Post
Sure that can be done...

One way to do it is: Start off with / DEFINE a primary sort field and DEFINE those COLx fields into "buckets". Then sort BY your promary sort fields NOPRINTed.

Can you create an expample, and post the code) of what you want using the CAR or EMPLOYEE files? That would be most helpful to us all and allow us to help you even better then this...




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
Member
posted Hide Post
Here is an example of what I need:

Before change:

COUNTRY.....MAKER......MODEL
Japan..........Toyota.....Corolla
Germany.....BMW........300i


After change: (producing one report)

COUNTRY.....MAKER
Japan..........Toyota
Germany.....BMW

COUNTRY.....MODEL
Japan..........Corolla
Germany.....300i

The question can I produce this kind of split in one report?
 
Posts: 27 | Registered: April 18, 2008Report This Post
Expert
posted Hide Post
Here's one way...

SET HOLDLIST=PRINTONLY
SET ASNAMES=ON
SET BYDISPLAY=ON
SET PAGE=NOLEAD

TABLE FILE CAR
PRINT CAR/A24 AS 'COL1'
COMPUTE SORT1/A5 = 'MAKER';
BY COUNTRY
ON TABLE HOLD AS H001
END

TABLE FILE CAR
PRINT MODEL AS 'COL1'
COMPUTE SORT1/A5 = 'MODEL';
BY COUNTRY
ON TABLE HOLD AS H002
END

TABLE FILE H001
PRINT
COL1 AS ''
BY SORT1 NOPRINT
BY COUNTRY AS ''

ON SORT1 SUBHEAD
"COUNTRY <SORT1"
ON SORT1 SUBFOOT
" "
ON TABLE SET STYLE *
TYPE=SUBHEAD, HEADALIGN=BODY, STYLE=BOLD, $
ENDSTYLE
MORE
FILE H002
END



Francis


Give me code, or give me retirement. In FOCUS since 1991

Production: WF 7.7.05M, Dev Studio, BID, MRE, WebSphere, DB2 / Test: WF 8.1.05M, App Studio, BI Portal, Report Caster, jQuery, HighCharts, Apache Tomcat, MS SQL Server
 
Posts: 10577 | Location: Toronto, Ontario, Canada | Registered: April 27, 2005Report 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     [CLOSED] Report Format Question

Copyright © 1996-2020 Information Builders