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  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Convert comma to decimalpoint

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Convert comma to decimalpoint
 Login/Join
 
Platinum Member
posted
Hi


I have a string like -211,12 i want to convert this to -211.12 (convert comma to decimalpoint).
I have used the following command but get a error.

-SET &NUMBER = STRREP(07,'-211,12',1,',',1,'.',07,'A07');

(FOC36355) INVALID TYPE OF ARGUMENT #6 FOR USER FUNCTION STRREP

How can i convert this?

This message has been edited. Last edited by: Kerry,
 
Posts: 103 | Registered: March 18, 2008Report This Post
Platinum Member
posted Hide Post
Hi,

You can try this document.

http://techsupport.information...om/sps/60112505.html

It mentions about function not liking the period.

Hope this helps.

Best Regards,

Jimmy Pang


DEV: WF 7.6.10
TEST: WF 7.6.10
PROD: WF 7.6.10
MRE: WF 7.6.4
OS/Platform: Windows
Dev Studio: WF 7.7
Output: HTML, EXCEL, PDF, GRAPH, LOTUS, CSV
 
Posts: 117 | Location: Toronto, Ontario, Canada | Registered: February 29, 2008Report This Post
Platinum Member
posted Hide Post
Here's the CTRAN function:

-SET &T1_STR = '-211,12';
-SET &NUMBER = CTRAN(07, &T1_STR, 44, 46, 'A07');
-*
-TYPE T1_STR ------- &T1_STR
-TYPE NUMBER ------- &NUMBER


WebFocus 8.201M, Windows, App Studio
 
Posts: 227 | Location: Lincoln Nebraska | Registered: August 12, 2008Report This Post
Virtuoso
posted Hide Post
So the string is really a nunmber that you want to evaluate, you're not really wanting a string. JFR99's code should get you what you need, but you might try doing a search on CDN (continental decimal notation) and see if that might help resolve your situation.


Regards,

Darin



In FOCUS since 1991
WF Server: 7.7.04 on Linux and Z/OS, ReportCaster, Self-Service, MRE, Java, Flex
Data: DB2/UDB, Adabas, SQL Server Output: HTML,PDF,EXL2K/07, PS, AHTML, Flex
WF Client: 77 on Linux w/Tomcat
 
Posts: 2298 | Location: Salt Lake City, Utah | Registered: February 02, 2007Report This Post
Platinum Member
posted Hide Post
Tanks all for your help

I got another solution that seems to work:

-SET &NUMBER = STRREP(07,'-211,12',1,',',1,HEXBYT(46, 'A1'),07,'A07');

replace '.' by HEXBYT(46, 'A1')
 
Posts: 103 | Registered: March 18, 2008Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic

Focal Point    Focal Point Forums  Hop To Forum Categories  WebFOCUS/FOCUS Forum on Focal Point     [SOLVED] Convert comma to decimalpoint

Copyright © 1996-2020 Information Builders