Focal Point Banner
Community Center Education Summit Technical Support User Groups
Let's Get Social!

Facebook Twitter LinkedIn
Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] The decimal values are truncating in the target after performing the trans
Go
New
Search
Notify
Tools
Reply
  
[CLOSED] The decimal values are truncating in the target after performing the trans
 Login/Join
 
Member
posted
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: Chuck Wolff,


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
What is the format of the source column in the master file?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1039 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
Member
posted Hide Post
Hi Dhagen

This is the format for source column in the master file.

FIELDNAME=RECEIVED_QTY, ALIAS=Received_Qty, USAGE=P17.6, ACTUAL=A11V,
TITLE='Received_Qty', $


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Platinum Member
posted Hide Post
Hi Kalai,

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.

regards, Martin.


WebFocus 7.6.9/7.7.06M, iWay DataMigrator, ISM, Windows, DB2 Windows V10.5, MS SQL Server, Hyperstage
 
Posts: 119 | Registered: March 29, 2013Reply With QuoteReport This Post
Member
posted Hide Post
Hi Martin

I tried with the transformation "FPRINT( RECEIVED_QTY, 'P17.6', 'A17V' )", but i am getting the exact value from the source in the target transformation.

Could you help, how to get the exact value from the delimiter sorce file.

Thanks in advance...


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
Change the master

quote:
FIELDNAME=RECEIVED_QTY, ALIAS=Received_Qty, USAGE=A11V, ACTUAL=A11V, TITLE='Received_Qty',$


No transformation required.


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1039 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
Member
posted Hide Post
Hi Dhagen

This is not working. I can not able to get exact value from the source.

Please help me, how to resolve this.

Thanks


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Virtuoso
posted Hide Post
I cannot help if you don't provide a proper description of the problem. My above post says to change the usage and actual to A11. If that is not working, then what is it doing?


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1039 | Location: Toronto, Ontario | Registered: May 26, 2004Reply With QuoteReport This Post
Member
posted Hide Post
quote:
Originally posted by Kalai:
Hi Dhagen

This is not working. I changed Actual & Usage in the .mas file. I can not able to get exact value from the source.

Please help me, how to resolve this.

Thanks


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Master
posted Hide Post
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: 805 | Location: Oklahoma City | Registered: October 27, 2006Reply With QuoteReport This Post
Member
posted Hide Post
Hi jgelona

I can able to read the successfully in the source file .mas file using synonym, but after the transformation decimal value got truncated. I need exact the value with out any truncation.

In the transformation, i am using below function

FPRINT(COLUMN_NAME,'P17.6',A11V)

whether, i need to increase the target table column size.

Please help me to resolve this issue.

Thanks


WebFOCUS 8
Windows, All Outputs
 
Posts: 28 | Registered: February 17, 2017Reply With QuoteReport This Post
Silver Member
posted Hide Post
We need to see your master file description and maybe a record or two of your data.


WebFOCUS 8.1.05M
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 47 | Location: Seattle, WA | Registered: April 07, 2015Reply With QuoteReport This Post
Virtuoso
posted Hide Post
What is your source data?

I see that "FPRINT( RECEIVED_QTY, 'P17.6', 'A11V' )" gives this:
562 562.025
. So, it's really not truncationg as truncation would imply that the source is numberic. This, 'A11V' shows that the source is alpha. So, an alpha to numeric translation is required.


Yes, that's my real license plate, as <BR>seen in Tennessee.  In FOCUS Since 1983 ~ from the early beginnings of FOCUS and PC FOCUS to WebFOCUS 82...
  KGP Logistics (Oct 2017-Present). Doing what whatever the customer wants in WebFOCUS.
  Platform/OS: I'll work with whatever WebFOCUS is running on when I get there.
  Output Formats: Whatever they want. Heck Yeah, We can do that in WebFOCUS!
 
Posts: 2180 | Location: Nashville Area, TN / KCK | Registered: February 23, 2005Reply With QuoteReport This Post
  Powered by Social Strata  
 

Focal Point    Focal Point Forums  Hop To Forum Categories  iWay Software Product Forum on Focal Point    [CLOSED] The decimal values are truncating in the target after performing the trans

Copyright © 1996-2017 Information Builders, leaders in enterprise business intelligence.