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.
Xxxx Yyyy ...
Jan Feb Mar Apr May Jan Feb Mar Apr May ...
---------------------------------------------------------
WHATEVER
--------
aaaaaaa xxx xxx xxx xxx xxx yyy yyy yyy yyy yyy ...
bbbbbbb xxx xxx xxx xxx xxx yyy yyy yyy yyy yyy ...
. . .
If all the measures have a common format, just apply a bit of McGuyver pixie dust.
Join to a sequencer file, to generate N rows (one per measure) for each original data row, define the measure indicator field (VAR) and the measure value (VALUE) as appropriate to each row, and sum VALUE ACROSS VAR ACROSS MONTH:
JOIN NADA WITH MONTH IN HOLD TO NADA IN SEQLIST
DEFINE FILE HOLD
NADA /A1 WITH MONTH = ' ';
VAR/XXX =DECODE Seq(1 'Xxxx' 2 'Yyyy' ...);
VALUE/XXX = IF Seq EQ 1 THEN XVAR ...
ELSE IF Seq EQ 2 THEN YVAR etc.;
END
TABLE FILE HOLD
WRITE VALUE AS ''
ACROSS Seq NOPRINT <- to force the VAR names into desired order
ACROSS VAR AS '' <- shows the original measure names
ACROSS MONTH AS ''
BY whatever <- sort keys for the rows of output
IF Seq FROM 1 TO [N]
END
- Jack Gross WF through 8.1.05
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005
Joe, Just notice that in order to produce this kind of report, the formats of AHT, uauxb etc. will have to be identical. Maybe you will be able to modify them dynamically (see page 6-17 of the creating reports manual 7.6).
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
Joe, Having had a bit of time on my hands, I concocted this example:
-* File Joe2.fex
SET HOLDLIST=PRINTONLY
-*
-* this is to create a fictitious month
DEFINE FILE CAR
XMONTH/MYY=WEIGHT/10 + HEIGHT + LENGTH;
MONTH/Mt=XMONTH;
END
-*
-* save data. use COMPUTE to add fields which will serve for the across sort
TABLE FILE CAR
SUM
COMPUTE TITL1/A5='SALES';
SALES/I7
COMPUTE TITL2/A5='RCOST';
RCOST/I7
COMPUTE TITL3/A5='DCOST';
DCOST/I7
BY COUNTRY
BY MONTH
ON TABLE SAVE AS JOE
END
-RUN
-*
-* The JOE master:
-* Notice that instead of having three pairs of title/values, it has one repeating pair within a child segment.
-*
-*FILENAME=JOE , SUFFIX=FIX
-*SEGMENT=JOE, SEGTYPE=S0
-* FIELDNAME=COUNTRY, ALIAS=E01, USAGE=A10, ACTUAL=A10, $
-* FIELDNAME=MONTH, ALIAS=E02, USAGE=Mt, ACTUAL=A02, $
-*SEGMENT=FIELDS, PARENT=JOE, OCCURS=VARIABLE
-* FIELDNAME=TITL, ALIAS=E03, USAGE=A5, ACTUAL=A05, $
-* FIELDNAME=VALUES,ALIAS=E04, USAGE=I7, ACTUAL=A07, $
TABLE FILE JOE
SUM VAL
BY COUNTRY
ACROSS TITL AS ''
ACROSS MONTH AS ''
END
See if this answers your question.
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