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.
We have DB2 tables with numeric columns defined as Type=DECIMAL, Length=17, Scale=2. When we generate masters for these tables, the column is defined as P19.2. I would like them to be defined as D19.2.
Is there a server setting to change the behaviour of master file generation?
I do not want to manually modify the masters.
Thanks.
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
For DB2 WebFocus generates Decimal as Packed to be able to support up to 31 positions. WebFocus generates DB2 float as D format, which can go to D20.0 however subroutines/user functions only supoport D fields up to 16 digits (FTOA). There is no server setting that can change this behaviour.
If it's simply an output issue because you want comma delimited output you can always specify that in the request ie COLUMN/P20.2C
Francis- I would be concerned with the potential for loss of precision when converting from packed decimal to floating point. I'm curious as to what the benefit is in this instance.
jimster06 DevStu WF 7.6.11 W7 HTML, PDF, EXL2K
Posts: 252 | Location: USA | Registered: April 15, 2003
Here is the info I received from one of our consultants.
Are you creating HOLD files? Or, are you using create synonym and not seeing the correct formats? If it is the latter, then the following setting should help:
ENGINE [DB2] SET CONVERSION format [PRECISION pp [ss]]
format
Is any valid format supported by the data source. Possible values are:
INTEGER
Indicates that the command applies only to INTEGER.
DECIMAL
Indicates that the command applies only to DECIMAL columns.
REAL
Indicates that the command applies only to single precision floating point columns.
FLOAT
Indicates that the command applies only to double precision floating point columns.
For this scenario:
ENGINE DB2 SET CONVERSION DECIMAL PRECISION 19 2
If hold files are a problem, then it will be something different.
Hope this helps.
Cheers,
Kerry
Kerry Zhan Focal Point Moderator Information Builders, Inc.
Posts: 1948 | Location: New York | Registered: November 16, 2004