Focal Point
[SOLVED] D17.16 Data not loading properly.

This topic can be found at:
https://forums.informationbuilders.com/eve/forums/a/tpc/f/1381057331/m/7207059586

March 24, 2017, 03:38 PM
Max Nevill
[SOLVED] D17.16 Data not loading properly.
I have a field that is D17.16. I have two transforms

DEFINE DOM_FTE/D17.16=IF FEE_TYPE EQ 'Domestic' THEN FTE ELSE 0; $
DEFINE INTL_FTE/D17.16=IF FEE_TYPE EQ 'International' THEN FTE ELSE 0; $

When run the process, instead of showing the data, I'm getting *********** values in my table. The data itself is more like D4.16, as there are results of calculations that have long repeating numbers. (Like 1/3). What am I doing wrong?

This message has been edited. Last edited by: FP Mod Chuck,


WebFocus 8.104
Windows 7 Entreprise, SP1
March 27, 2017, 09:28 AM
jgelona
D format has a max of 15 significant digits. Try P format, it goes to 32 or 33 significant digits.


In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
March 28, 2017, 04:37 AM
Martin vK
I think D format should work, but D17.16 will not work as the 17 is the total number of characters

Dt[.s]  where:

t
Is the number of characters to display up to a maximum of 33, including the numeric digits, an optional decimal point, and a leading minus sign if the field contains a negative value. The number of significant digits supported varies with the operating environment.

s
Is the number of digits that follow the decimal point. 31 and must be less than t.


So you should try D33.16

Martin.


WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
March 28, 2017, 06:57 PM
Max Nevill
Hey guys, thanks for the help. I made the change D33.16 and no longer have a problem.


WebFocus 8.104
Windows 7 Entreprise, SP1