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. Moving forward, myibi is our community platform to learn, share, and collaborate. We have the same Focal Point forum categories in myibi, so you can continue to have all new conversations there. If you need access to myibi, contact us at email@example.com and provide your corporate email address, company, and name.
Hi all, I am reading the flat file and performing the transformation, But in the target table the decimal values are truncating(for example if the source file having the value as "562.025" i am getting the output in the target table as "562. ").
The target table data type is "VARCHAR" and the length is 11.
The target transformation is "FPRINT( RECEIVED_QTY, 'P17.6', 'A11V' )".Where RECEIVED_QTY is the column name.
Can any one suggest any solution, i have to get the decimal values also without truncation.
Thanks in advance.......This message has been edited. Last edited by: FP Mod Chuck,
P17.6 indicates that the total length is 17 positions including the decimal point and the 6 positions after that, so 10 positions before the decimal point. If the total length is 17, I guess in the FPRINT and ACTUAL you should also use A17. I do not see either why to make it variable length.
WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
If you can, post the complete .mas file and the record. If setting both USAGE and ACTUAL to A11 or A11V doesn't get you the full value, then something is wrong with the data, master or both. You say it is a flat file, then add that it is a "delimiter source file", well, if the master is not right, the data will not be read correctly.
In FOCUS since 1985. Prod WF 8.0.08 (z90/Suse Linux) DB (Oracle 11g), Self Serv, Report Caster, WebServer Intel/Linux.
Posts: 975 | Location: Oklahoma City | Registered: October 27, 2006