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.
SQL SQLMSS EX .dbo.GETVALUE
TABLE FILE SQLOUT
PRINT *
ON TABLE HOLD AS XSQLOUT
END
TABLE FILE XSQLOUT
SUM TEST/P13.2
ON TABLE SET PAGE OFF
ON TABLE SET PAGE-NUM OFF
ON TABLE RECOMPUTE AS 'TOTAL'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
ON TABLE SET STYLE *
................
................
.................
.................
-RUN
This message has been edited. Last edited by: Yangyang,
TABLE FILE CAR
SUM
DEALER_COST/P12.2
RETAIL_COST/P12.2
SALES/P12.2
LENGTH/P12.2
WHEELBASE/P12.2 AS 'TEST'
BY TOTAL HIGHEST WHEELBASE/P12.2
BY CAR
BY MODEL
ON TABLE SET PAGE OFF
ON TABLE SET PAGE-NUM OFF
ON TABLE RECOMPUTE AS 'TOTAL'
ON TABLE PCHOLD FORMAT AHTML
ON TABLE SET HTMLCSS ON
END
-EXIT
you can see the 'TEST' column is not format P12.2 , look like P12.1
by the way , I code in Webfocus7610 64bit and windows2008 64bit.
I think you should open a case for this with IB tech support. The code on the car file reacts the same in webfocus 7701 on a 32 bit platform. The code is ok however when run in normal html in stead of active html. And the code is also ok if you specify BY TOTAL HIGHEST WHEELBASE NOPRINT in stead of BY TOTAL HIGHEST WHEELBASE/P12.2 It seems that things get screwed up if you use the wheelbase field (or any other D or P field) in a BY statement.
GamP
- Using AS 8.2.01 on Windows 10 - IE11.
in Focus since 1988
Posts: 1961 | Location: Netherlands | Registered: September 25, 2007
Another idea, off the top of my head, it that something may be getting confused in the internal matrix. When you rdefine formats on the fly like this, you actually end up with two fields with the same column name in the internal matrix. Which one gets used with the BY TOTAL, I don't know, but this seems a little indicative of the problem you're seeing. You might try SET HOLDLIST=PRINTONLY, HOLD, and then TABLE the HOLD file. This woul at least eliminate that possibility. If that solves the problem, just DEFINE/COMPUTE fields with different names instead of redefining the format on the fly.
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007