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.
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, AnatessThis message has been edited. Last edited by: Anatess,
-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, 2006