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]FST.value as a BY FIELD

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED]FST.value as a BY FIELD
 Login/Join
 
Guru
posted
Hi guys, something tricky:

I have a subheader field that relies on another field for its sort order. So, the data source looks like this:
FIELD1   FIELD2   FIELD3
------   ------   ----------------------
Q        3        This is 
Q        4        just made up
Q        5        fields for
R        1        use as
T        8        an example to
T        9        show the db
U        2        structure


Now, I need to print this report:

Subhead: R
use as

Subhead: U
structure

Subhead: Q
This is
just made up
fields for

Subhead: T
an example to
show the db

So, how can I effect a Sort on FST.FIELD2 on a BY FIELD1 report without having to do 2 passes to the db?

Thanks,
Anatess

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


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Virtuoso
posted Hide Post
Hi Ana,

A solution for you:
-SET &ECHO=ALL;
-* File anatess03.fex
-*
FILEDEF ANA DISK ANA.TXT
-RUN
-WRITE ANA Q        3        This is 
-WRITE ANA Q        4        just made up
-WRITE ANA Q        5        fields for
-WRITE ANA R        1        use as
-WRITE ANA T        8        an example to
-WRITE ANA T        9        show the db
-WRITE ANA U        2        structure
-RUN
EX -LINES 8 EDAPUT MASTER,ANA,C,MEM
FILENAME=ANA, SUFFIX=FIX
SEGNAME=ANA, SEGTYPE=S0
FIELDNAME=F1, ALIAS=F1, USAGE=A1, ACTUAL=A1, $
FIELDNAME=FX, ALIAS=FX, USAGE=A8, ACTUAL=A8, $
FIELDNAME=F2, ALIAS=F2, USAGE=I2, ACTUAL=A1, $
FIELDNAME=F0, ALIAS=F0, USAGE=A1, ACTUAL=A8, $
FIELDNAME=F3, ALIAS=F3, USAGE=A14, ACTUAL=A14, $
-RUN
TABLE FILE ANA
SUM COMPUTE SF2/I2=FST.F2; NOPRINT
BY TOTAL SF2 NOPRINT BY F1 NOPRINT
PRINT F3 AS ''
BY TOTAL SF2 NOPRINT BY F1 NOPRINT
ON F1 SUBHEAD
"Subhead: <F1 "
END
  


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report This Post
Guru
posted Hide Post
BRILLIANT!

Thanks, Danny.


WF 8.1.05 Windows
 
Posts: 333 | Location: Orlando, FL | Registered: October 17, 2006Report This Post
Virtuoso
posted Hide Post
ummm ... the arrangement of data in the illustration suggests that all you really need is

print field3
by field1
by field2
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
Virtuoso
posted Hide Post
Jack,
quote:
print field3
by field1
by field2

You probably mean...
  
print field3 
by field2 
by field1

but then how do you insert the SUBHEAD?


Daniel
In Focus since 1982
wf 8.202M/Win10/IIS/SSA - WrapApp Front End for WF

 
Posts: 1980 | Location: Tel Aviv, Israel | Registered: March 23, 2006Report 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]FST.value as a BY FIELD

Copyright © 1996-2020 Information Builders