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] Need to reorder data and append files

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Need to reorder data and append files
 Login/Join
 
Member
posted
Hi All,

I have a table in the following format
 
CAR    COUNTRY  COST  LENGTH  QUEST  ANS 

 
JAGUAR ENGLAND  7,427  190      A    B
                                C    D
                                E    F 
JENSEN ENGLAND  14,940 188      A	 B
			     C    D
			     E    F
			     G    H
			     I    J


Country England	
CAR      Jaguar	
Cost Information	
COST	7,427
Size Related Information	
LENGTH	190
OTHER Detail	
A	B
C	D
E	F
CAR  Jensen	
Cost Information	
COST	14,940
Size Related Information	
LENGTH	188
OTHER Detail	
A	B
C	D
E	F
G	H
I	J
CAR  Triumph	
Cost Information	
COST		
Size Related Information	
LENGTH		
OTHER Detail	
	

Country Italy

and So on


I am able to get 'Cost Information' and 'Size Related Information' in the above format (using OVER etc).

But the challenge is the 'Other Detail' section as this comes from colum data (please note 'QUESTION and ANSWER' fields in the sample table structure above.

Also refer case no. 70492513 on IBI tech Support.

Can anyone help me with this?

Thanks

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


WebFocus 7.6.6
Unix
HTML,PDF, EXCEL
 
Posts: 8 | Registered: February 18, 2011Report This Post
Expert
posted Hide Post
Have you thought about putting the Country, CAR, COST, LENGTH in a heading or subhead ?

Also please put you sample data between the code tags, as it will preserve the spaces.


Waz...

Prod:WebFOCUS 7.6.10/8.1.04Upgrade:WebFOCUS 8.2.07OS:LinuxOutputs:HTML, PDF, Excel, PPT
In Focus since 1984
Pity the lost knowledge of an old programmer!

 
Posts: 6347 | Location: 33°49'23.0"S, 151°11'41.0"E | Registered: October 31, 2006Report This Post
Member
posted Hide Post
Hi Waz,
Thanks for the response.
I waited for a long time for one!.
Actually I put the columns in Subhead and tried 'OVER'. But i am unable to get the above format.
The problem with this is that QUEST and ANS are columns and everything else is row data.
So OVER is not giving the right output.
The 'Other Details' Section is giving me problems. Frowner


WebFocus 7.6.6
Unix
HTML,PDF, EXCEL
 
Posts: 8 | Registered: February 18, 2011Report This Post
Virtuoso
posted Hide Post
Create a new field that holds both the question and answer value (A and B, C and D) would that be possible?

Or is there no relation between those 2 ?




Frank

prod: WF 7.6.10 platform Windows,
databases: msSQL2000, msSQL2005, RMS, Oracle, Sybase,IE7
test: WF 7.6.10 on the same platform and databases,IE7

 
Posts: 2387 | Location: Amsterdam, the Netherlands | Registered: December 03, 2006Report This Post
Virtuoso
posted Hide Post
Waz is correct. Use SUBHEAD and ignore OVER, unnecessary.

Something like this may work:
TABLE FILE fn
PRINT   QUESTION AS '' 
        ANSWER AS ''
BY COUNTRY NOPRINT
BY CAR NOPRINT
BY COST NOPRINT
BY LENGTH NOPRINT
BY QUESTION NOPRINT
 
ON LENGTH SUBHEAD
" "
" Country : <COUNTRY"
" Car : <CAR"
" Cost Information"
" Cost : <COST"
"Size Related Information	"
"Length : <LENGTH"
"Other Detail"
.
.
.	


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Thanks Frank and Alan.

Frank,
I can hold the data in one field.
How can I go about it after that.
Alan,
This is very close to what I want.
But the formatting is a challenge here.
How do I get a grid in the Subhead?
or do I have to manipulate?

Thanks
Djay


WebFocus 7.6.6
Unix
HTML,PDF, EXCEL
 
Posts: 8 | Registered: February 18, 2011Report This Post
Virtuoso
posted Hide Post
Manipulate. Something like:
.
.
.
ON TABLE SET STYLE *
GRID=OFF,FONT=ARIAL,SIZE=10,$                                                           
TYPE=SUBHEAD,BY=LENGTH,HEADALIGN=BODY,$
TYPE=SUBHEAD,BY=LENGTH,LINE=4,STYLE=UNDERLINE,$
TYPE=SUBHEAD,BY=LENGTH,LINE=6,STYLE=UNDERLINE,$
TYPE=SUBHEAD,BY=LENGTH,LINE=8,STYLE=UNDERLINE,$
ENDSTYLE
should give a start.


Alan.
WF 7.705/8.007
 
Posts: 1451 | Location: Portugal | Registered: February 07, 2007Report This Post
Member
posted Hide Post
Thanks a ton Alan! This Works!


WebFocus 7.6.6
Unix
HTML,PDF, EXCEL
 
Posts: 8 | Registered: February 18, 2011Report 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] Need to reorder data and append files

Copyright © 1996-2020 Information Builders