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.
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.
regards, Martin.
WebFocus 8206M, iWay DataMigrator, Windows, DB2 Windows V10.5, MS SQL Server, Azure SQL, Hyperstage, ReportCaster
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.
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
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
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.
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, 2005