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.
DEFINE FILE CAR
WS_INTEGER/I9 WITH DEALER_COST MISSING ON = MISSING;
WS_DECIMAL/D12.2 WITH DEALER_COST MISSING ON = MISSING;
END
TABLE FILE CAR
SUM RCOST
DCOST
WS_INTEGER
WS_DECIMAL
BY COUNTRY
BY CAR
BY MODEL
END
It is advisable to get used to issuing the WITH realfieldname in your defines, especially if it is a mutli segment.
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
Tony, thanks for the response. Is there a way to do this when the original value is not missing such as setting it to null when the field value equals zero?
At the request of my customer, I'm trying to not show 0's on the report and using conditional formatting doesn't look like it will work since they also want to display the report with alternating colors for the row background.
Thanks.
David
David
WebFOCUS 8.1.05M (dev, test & prod); all output types
DEFINE FILE CAR
WS_INTEGER/I9 WITH DEALER_COST MISSING ON = IF DEALER_COST EQ 0 THEN MISSING ELSE DEALER_COST;
WS_DECIMAL/D12.2 WITH DEALER_COST MISSING ON = IF DEALER_COST EQ 0 THEN MISSING ELSE DEALER_COST;
END
TABLE FILE CAR
SUM RCOST
DCOST
WS_INTEGER
WS_DECIMAL
BY COUNTRY
BY CAR
BY MODEL
END
Combine that with Prarie's SET command above and you will get spaces where there would have been zeroes.
Good luck
T
In FOCUS since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2
WebFOCUS App Studio 8.2.06 standalone on Windows 10
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004
If it's just a matter of not displaying zeros...try a format like D12.2S to suppress the display of 0 values. Reformat the field on the fly in the verb statement.
ttfn, kp
Access to most releases from R52x, on multiple platforms.
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003