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.
So here's the deal: I have a SQL data source with a proper master file set up for it.
I'm trying to create a DEFINE field named "PERCENT_CAPACITY" to compute a capacity value. It is in D12.2 format. The idea is to compute room capacity for a hospital.
The two decimal positions in the result are ALWAYS zeroes. No amount of pleading, praying, protesting, procrastinating or programming makes any difference. I consistently get this:
Isn't it enough to specify the D12.2 format for the final result in order to preserve the decimal place data, even though integers are used in the calculations? At one point I even created new DEFINE fields which converted the I11 integers to D12.2's. No difference whatsoever.
And why is it that the simplest of things in WebFOCUS becomes a headache and an afternoon-burner? This is the year 2016 and we've sent men to the moon by dividing numbers. What has changed since then? Rant over.This message has been edited. Last edited by: Squatch,
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015
Try using P12.2 instead and include your whole code into the post, it may help to find the issue.
Same result with the P12.2 format.
Here's what I have:
ENGINE INT CACHE SET ON
-*COMPONENT=Define_ed_last24hr_timekey_summary_data_v
DEFINE FILE bidev/ed_last24hr_timekey_summary_data_v
PERCENT_CAPACITY/D12.2=NUM_ACTIVE / (60 - NUM_RESERVED - NUM_UNCLEAN - NUM_BLOCKED) * 100;
END
-DEFAULTH &WF_SUMMARY='Summary';
-DEFAULTH &WF_TITLE='WebFOCUS Report';
TABLE FILE bidev/ed_last24hr_timekey_summary_data_v
SUM ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.NUM_ACTIVE
ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.NUM_RESERVED
ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.NUM_UNCLEAN
ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.NUM_BLOCKED
PERCENT_CAPACITY
BY ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.ED_LAST24HR_TIMEKEY_SUMMARY_DATA_V.TIMEKEY_SQLDATE_STR
ON TABLE PCHOLD FORMAT HTML
ON TABLE NOTOTAL
ON TABLE SET PAGE-NUM NOLEAD
ON TABLE SET SQUEEZE ON
ON TABLE SET EMPTYREPORT ON
ON TABLE SET HTMLCSS ON
ON TABLE SET HTMLENCODE ON
ON TABLE SET CACHELINES 100
ON TABLE SET GRWIDTH 1
ON TABLE SET STYLE *
-* INCLUDE=IBFS:/FILE/IBI_HTML_DIR/javaassist/intl/EN/ENIADefault_combine.sty,$
TYPE=REPORT, TITLETEXT=&WF_TITLE.QUOTEDSTRING, SUMMARY=&WF_SUMMARY.QUOTEDSTRING, $
ENDSTYLE
END
-RUN
App Studio WebFOCUS 8.1.05M Windows, All Outputs
Posts: 594 | Location: Michigan | Registered: September 04, 2015