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 need help creating the following in report: I grouped all the items I need into 1 column, and now I need to break this column by "groups". This is my script and what it does:
TABLE FILE WORKORDER PRINT PROJECT AS 'PROJ#' WORKORDER AS 'WO' OVER UNIT AS 'UNIT' OVER AMOUNT AS 'QTY' BY PROJECT NOPRINT ON TABLE PCHOLD FORMAT EXL2K
This prints the following:
PROJ# 001 WO 111 UNIT 1 QTY 5 PROJ# 001 WO 222 UNIT 2 QTY 3 PROJ# 002 WO 521 UNIT 1 QTY 6 PROJ# 002 WO 521-6 UNIT 6 QTY 1
But what I need it to do is to group by project horizontaly, and then take it to the next line when the project number changes. Like this:
PROJ# 001 WO 111 WO 222 UNIT 1 UNIT 2 QTY 1 QTY 3 PROJ# 002 WO 521 WO 521-6 UNIT 1 UNIT 6 QTY 6 QTY 1 ETC...
Thanks for your help...This message has been edited. Last edited by: sergio.g1,
Maybe someone can explain why OVER and ACROSS don't work so well together.
SET PAGE=NOLEAD
SET NODATA=''
TABLE FILE CAR
SUM
COMPUTE TXT1/A10 = 'WEIGHT'; AS ''
WEIGHT AS ''
COMPUTE TXT2/A10 = 'HEIGHT'; AS ''
HEIGHT AS '' OVER
COMPUTE TXT2/A10 = 'LENGTH'; AS ''
LENGTH AS ''
COMPUTE TXT2/A10 = 'WIDTH'; AS ''
WIDTH AS ''
BY COUNTRY AS ''
ACROSS BODYTYPE AS ''
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
Originally posted by Francis Mariani: Maybe someone can explain why OVER and ACROSS don't work so well together.
SET PAGE=NOLEAD
SET NODATA=''
TABLE FILE CAR
SUM
COMPUTE TXT1/A10 = 'WEIGHT'; AS ''
WEIGHT AS ''
COMPUTE TXT2/A10 = 'HEIGHT'; AS ''
HEIGHT AS '' OVER
COMPUTE TXT2/A10 = 'LENGTH'; AS ''
LENGTH AS ''
COMPUTE TXT2/A10 = 'WIDTH'; AS ''
WIDTH AS ''
BY COUNTRY AS ''
ACROSS BODYTYPE AS ''
END
The use of AS '' is causing the SUMmed matrix data values to shift left, as we want in this case, but the ACROSS title value, Bodytype, is not shifting left with their data. I could not come up with a quick work-around.
In FOCUS since 1985 - WF 8.009/8.104 Win 8 Outputs: ALL of 'em! Adapters: Sql Server Teradata Oracle
TABLE FILE CAR
SUM
WEIGHT
HEIGHT
OVER
LENGTH
WIDTH
BY COUNTRY
ACROSS BODYTYPE AS ''
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
TYPE=REPORT, SQUEEZE=ON,
FONT='ARIAL', SIZE=9, BORDER=1, BORDER-COLOR=SILVER, $
TYPE=TITLE, STYLE=BOLD, $
TYPE=ACROSSVALUE, STYLE=BOLD, JUSTIFY=CENTER, COLOR=BLUE, $
TYPE=DATA, COLUMN=COUNTRY, STYLE=BOLD, COLOR=BLUE, $
ENDSTYLE
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
Thanks everyone for your help. A combination between:
quote:
SET PAGE=NOLEAD SET NODATA=''
TABLE FILE CAR SUM COMPUTE TXT1/A10 = 'WEIGHT'; AS '' WEIGHT AS '' COMPUTE TXT2/A10 = 'HEIGHT'; AS '' HEIGHT AS '' OVER COMPUTE TXT2/A10 = 'LENGTH'; AS '' LENGTH AS '' COMPUTE TXT2/A10 = 'WIDTH'; AS '' WIDTH AS '' BY COUNTRY AS '' ACROSS BODYTYPE AS '' END
and
quote:
TABLE FILE CAR SUM WEIGHT HEIGHT
OVER
LENGTH WIDTH
BY COUNTRY ACROSS BODYTYPE AS ''
ON TABLE SET HTMLCSS ON ON TABLE SET STYLE * TYPE=REPORT, SQUEEZE=ON, FONT='ARIAL', SIZE=9, BORDER=1, BORDER-COLOR=SILVER, $