Focal Point Banner


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.


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

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[CLOSED] The decimal values are truncating in the target after performing the trans
 Login/Join
 
Silver 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: FP Mod Chuck,


WebFOCUS 8
Windows, All Outputs
 
Posts: 35 | Registered: February 17, 2017Report 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: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver 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: 35 | Registered: February 17, 2017Report 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 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
 
Posts: 168 | Registered: March 29, 2013Report This Post
Silver 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: 35 | Registered: February 17, 2017Report 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: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver 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: 35 | Registered: February 17, 2017Report 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: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Silver 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: 35 | Registered: February 17, 2017Report 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: 975 | Location: Oklahoma City | Registered: October 27, 2006Report This Post
Silver 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: 35 | Registered: February 17, 2017Report This Post
Platinum Member
posted Hide Post
We need to see your master file description and maybe a record or two of your data.


WebFOCUS 8.2.03 - Production
WebFOCUS 8.2.04 - Sand Box
Windows 2012 R2 Server
HTML, PDF, Excel
In FOCUS since 1980
 
Posts: 115 | Location: Seattle, WA | Registered: April 07, 2015Report This Post
Expert
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.




   In FOCUS Since 1983 ~ from FOCUS to WebFOCUS.
   Current: WebFOCUS Administrator at FIS Worldpay | 8204, 8206
 
Posts: 3132 | Location: Tennessee, Nashville area | Registered: February 23, 2005Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

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-2020 Information Builders