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.
Hi, I am trying to get some code to work and I'm stuck here When I execute the second SET command the values all appear to be there but when I TYPE it out after the SET I get the ******** is there anyway to fix this?
-*****--V_MASTER_CASH_ADJ -TYPE 104038080.74 104038080.74 -SET &V_ASSETS_MASTER_CASH=TRUNCATE( 104038080.74); -SET &V_MASTER_CASH_ADJ=IF 'EXECUTED' EQ 'ORDERED' THEN (( 104038080.74) - 0 - 0) ELSE IF 'EXECUTED' EQ 'EXECUTED' THEN (( 104038080.74) - 0) ELSE ( 104038080.74); -SET &V_MASTER_CASH_ADJ=TRUNCATE(********); -TYPE ******** ******** -SET &V_HOL_MASTER_ASSET_TYPE1=UPCASE(15,'AS ACCOUNTED','A15'); -SET &V_HOL_MASTER_ASSET_TYPE1=TRUNCATE(AS ACCOUNTED ); -******--V_MASTER_TNA -SET &V_MASTER_TNA= IF 'AS ACCOUNTED' EQ 'CALCULATED' THEN ( 2757428823.60 + ******** - 0) ELSE IF 'AS ACCOUNTED' EQ 'OTHER' THEN As-Accounted ELSE 2860464543.06; (FOC281) ALPHA ARGUMENTS IN PLACE WHERE NUMERIC ARE CALLED FORThis message has been edited. Last edited by: Kerry,
We need to see which variables are being used and how, but apparently you're getting a data precision error based on the ******* results being displayed.
I'm basically converting everything to strings since DM does not seem to be able to keep "big" numbers in &variables. It can deal properly with them in internal calculations though.
I poked around with this as well. By default DM uses integers with a maximum size of 11 digits. Use DMPRECISION to set decimal precision:
SET DMPRECISION = 2
I just can't get DM to work with the 104038080.74 number. I thought we could convert the value to numeric using a format conversion function, but I can't get this to work.
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
Your number 104038080.74 seems to be one digit too big for DM to handle in calculations. If you don't expect to deal with numbers that large then your code should work as is. Otherwise, you may be able to use function FTOA (similar to PTOA suggested by njsden) to avoid this limitation, or you could probably create a DEFINE FUNCTION to handle to calculations. Here's an excellent example of a DEFINE FUNCTION used in DM, posted by Francis: