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.
Waz is correct as it is a packed field you should be using PTOA not FTOA.
Having said that when you actually do need to convert a double and do not want the commas the the format should be D12c (the lowercase c means no commas whereas a C uppercase means add commas which is the default for double numerics)
I would not be too comfortable with that solution - especially since you are using FTOA to convert a packed decimal number. If you ever got a larger or smaller number in unit code, it may not work.
But then again, I have also run across solutions that always work for some inexplicable reason contrary to what logic dictates. Isn't WF great?
Regards,
Darin
In FOCUS since 1991 WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex WF Client: 77 on Linux w/Tomcat
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007
Darin isn't the only one who thinks you may be courting trouble with that solution. If you are running on an UNIX or Windows server then you might not encounter a problem, but even then I would convert the number to a D12c before using FTOA.
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007
Syntax: How to Specify a Packed-Decimal Format Pm.n where:
m Is the maximum number of characters to be displayed, up to a maximum of 33 positions (which include a position for the sign and decimal place). The default length is 12.2.
n Is the number of digits that will follow the decimal point. It can be up to 31 digits.
JG You seem to have missed my point. The format of the original number is P12. I would convert it to a D12 before using FTOA or use PTOA (which might not be available depending on the release).
Pat WF 7.6.8, AIX, AS400, NT AS400 FOCUS, AIX FOCUS, Oracle, DB2, JDE, Lotus Notes
Posts: 755 | Location: TX | Registered: September 25, 2007