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     HOW DO I REMOVE COMMAS FROM A STRING?

Read-Only Read-Only Topic
Go
Search
Notify
Tools
HOW DO I REMOVE COMMAS FROM A STRING?
 Login/Join
 
Member
posted
I need to remove commas from a text field using a TABLE in VM FOCUS 7.2.4. I found this routine on FOCAL POINT:

EDIT( (STRIP(15, FIELDA, ',', 'A15')))

But it only works for numerics. Here's the error I get:

DEFINE FILE EMPLFIL1
SHORT_COMPANY/A25 = EDIT(DESCR,'9999999999999999999999999');
RPT_COMPANY/A25 = EDIT( (STRIP(25, SHORT_COMPANY, ',', 'A25')));
ERROR AT OR NEAR LINE 113 IN PROCEDURE EMPLSENDFOCEXEC
(FOC282) RESULT OF EXPRESSION IS NOT COMPATIBLE WITH THE FORMAT OF
FIELD: RPT_COMPANY

Any help will be greatly appreciated!

Mike


Mike Anderson
 
Posts: 14 | Location: Columbus, Ohio | Registered: May 20, 2003Report This Post
Expert
posted Hide Post
quote:
RPT_COMPANY/A25 = EDIT( (STRIP(25, SHORT_COMPANY, ',', 'A25')));

Mike,

It looks as though you might have one too many brace pairs in your syntax -

RPT_COMPANY/A25 = EDIT(STRIP(25, SHORT_COMPANY, ',', 'A25'));



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Guru
posted Hide Post
SHORT_COMPANY is an alphanumeric field.
Why are you doing an EDIT on it to produce RPT_COMPANY?

An EDIT without a mask specified is used to convert alpha to integer or integer to alpha.

Take the EDIT out.


ttfn, kp


Access to most releases from R52x, on multiple platforms.
 
Posts: 346 | Location: Melbourne Australia | Registered: April 15, 2003Report This Post
Expert
posted Hide Post
Well spotted Karen, that will teach me to try and answer problems when I've been awake for too long!



In FOCUS
since 1986
WebFOCUS Server 8.2.01M, thru 8.2.07 on Windows Svr 2008 R2  
WebFOCUS App Studio 8.2.06 standalone on Windows 10 
 
Posts: 5694 | Location: United Kingdom | Registered: April 08, 2004Report This Post
Member
posted Hide Post
I would just like to thank all of you for your help. I took off the EDIT and the extra paren and voila! Focal Point is a great resource.

Mike


Mike Anderson
 
Posts: 14 | Location: Columbus, Ohio | Registered: May 20, 2003Report 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     HOW DO I REMOVE COMMAS FROM A STRING?

Copyright © 1996-2020 Information Builders