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.
Amper variables formats only can be alphanumeric or integer. After arithmetic operations in Dialogue Manager, the decimal part is truncated. To avoid this truncation, We can convert the result to alphanumeric format using FTOA function.
That worked for the code I had submitted. The problem is that if the result goes beyond 1000 it is not able as there is a comma that gets added to the result. for Example
What I was really having trouble with was the following:-
-SET &C = &A + &B ; (where &A = 2222222222 and &B = 3333333333) The result &C should be displayed as 5555555555 but instead shows as ******** (8 asterisks) therefore by doing :- -SET &D = FTOA(&A+&B, '(D10c)', 'A10'); you get the addition displaying correctly
Cheers...
_______________________ *** WebFOCUS 8.1.05M ***
Posts: 196 | Location: London, UK | Registered: December 06, 2005
Based on a little experimentation, it appears that -SET has two different modes of operation when right-hand-side involves numbers.
1. -SET &var = a string of digits; treats the string of digits as a character expression.
2. -SET &var = an expression involving an arithmetic operator; evaluates the expression, and then effectively formats it using FTOA(result, '(F8)', 'A8'), if DMprecision is zero. If FTOA senses overflow, then '********' is stored in &var. But if result of the expression was out of range (not sure what that range is), the value fed to FTOA is reset to zero.
Parentheses can be either numeric or character operators, depending on context, so they do not of themselves transform the RHS into a "numeric" expression.