Focal Point Banner


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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
TRUNC in WEBFOCUS ?
 Login/Join
 
<Navin>
posted
Hi
Is there any equivalent function in WEBFOCUS as that of TRUNC in ORACLE.

Thanks
Naveen.
WF 7.1.6
 
Report This Post
Platinum Member
posted Hide Post
What are you trying to do?


WF 7.6.11
Output: HTML, PDF, Excel
 
Posts: 123 | Location: UK | Registered: October 09, 2003Report This Post
<Navin>
posted
i am trying to get the system date and calculate the previous month's start date.

I was trying with the ORACLE query , taking the sysdate , truncating it for the previous month.

But i want to bypass the database hit . . .

so i am using the today() function of webfocus to get the sysdate.After that i want to calculate the start date of the "Previous quarter" or the "previous month"
So i was looking for the TRUNC like function . . .

Thanks
Naveen.
WF 7.1.6
 
Report This Post
<JG>
posted
WebFocus Reporting does not have an equivalent of TRUNC that can be used in DEFINE or COMPUTE.


However you can do the equivalent using formating options for your output

For instance if you have a column called ORIGINAL with a format of D10.6 and a value of 123.123456

PRINT ORIGINAL ORIGINAL/D10.1

would produce 123.123456 123.1

as its output
 
Report This Post
<JG>
posted
Sorry Navin you want the other use of trunc

use the DATEMOV subroutine it does the equivalent
 
Report This Post
<Navin>
posted
JG . ..

Thanks for the DATEMOV function . . that works well for me .

Thanks
Naveen.
 
Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders