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.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
Data Migrator
 Login/Join
 
Gold member
posted
In DataMigrator functin to convert $10.00 to 10.00
or $(10.00) to -10.00

thanks


IWay SM 5.6, 6.01, 6.1, 6.9, 7.0
EDI, XML, XSD, WF 8.0, DM 77,8.0 asp.net, SQL Server
 
Posts: 87 | Registered: February 27, 2009Report This Post
Virtuoso
posted Hide Post
You could use function CTRAN to replace both '$' and ')' with a blank and '(' with a minus sign, and then use function ATODBL to turn the result into a double-precision number. This assumes the incoming data (FIELD0) is alphanumeric with a length of x (Ax).

FIELD1/Ax   = CTRAN(x,FIELD0,BYTVAL('$','I3'),BYTVAL(' ','I3'),'Ax');
FIELD2/Ax   = CTRAN(x,FIELD1,BYTVAL(')','I3'),BYTVAL(' ','I3'),'Ax');
FIELD3/Ax   = CTRAN(x,FIELD2,BYTVAL('(','I3'),BYTVAL('-','I3'),'Ax');
FIELD4/Dx.2 = ATODBL(FIELD3,'x','Dx.2');


WebFOCUS 7.7.05
 
Posts: 1213 | Location: Seattle, Washington - USA | Registered: October 22, 2007Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders