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] Removing & in V 5.2.3

Read-Only Read-Only Topic
Go
Search
Notify
Tools
[SOLVED] Removing & in V 5.2.3
 Login/Join
 
Platinum Member
posted
Hi all, its me again....

I have a report that I formatted as XML to read into a javascript routine (EXTJS). The problem is my data has an ampersand in the name fields (J & R) which I would like to display as is. But XML treats an & as a special value. I need to replace that with & amp; . But STRREP isn't available in 5.2.3.


anyone have a routine that can do a string replacement?
P

This message has been edited. Last edited by: Lloyd,


Lloyd Prendergast
Michael Kors (USA), Inc.
Phone: 201-453-5076
Fax: 646-354-4776
Lloyd.Prendergast@Michaelkors.com


WebFOCUS 523
WebFOCUS 7.6
WebFOCUS 7.7

Windows Server 2005
Windows Server 2008

Iseries V5R3M0
Iseries V5R5M0
Iseries V6R1M0
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report This Post
Virtuoso
posted Hide Post
I would use Maintain, which has functions for unequal-length string substitutions even in 5.x.


- Jack Gross
WF through 8.1.05
 
Posts: 1925 | Location: NYC | In FOCUS since 1983 | Registered: January 11, 2005Report This Post
<JG>
posted
GETTOK using 1 and GETTOK using -1

DEFINE FILE CAR
AC/A30=IF COUNTRY EQ 'ENGLAND' THEN EDIT(COUNTRY,'999 & 9999999999') ELSE COUNTRY;
NEWAC/A66=IF AC CONTAINS '&' THEN
GETTOK(AC, 30, 1, '&', 30, 'A30') || ' &|amp;' || GETTOK(AC, 30, -1, '&', 30, 'A30')
ELSE AC;

END
TABLE FILE CAR
PRINT AC NEWAC
END
 
Report This Post
Platinum Member
posted Hide Post
Thanks JG, that worked remarkably well!!!


Lloyd Prendergast
Michael Kors (USA), Inc.
Phone: 201-453-5076
Fax: 646-354-4776
Lloyd.Prendergast@Michaelkors.com


WebFOCUS 523
WebFOCUS 7.6
WebFOCUS 7.7

Windows Server 2005
Windows Server 2008

Iseries V5R3M0
Iseries V5R5M0
Iseries V6R1M0
 
Posts: 157 | Location: Secaucus, NJ | Registered: May 21, 2004Report 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] Removing & in V 5.2.3

Copyright © 1996-2020 Information Builders