|
Bob, The downside to XLATE is that it's a one to one relationship. So if you wanted to pare repeating characters to one (i.e. 'XXXXYY' should become 'XY'), XLATE would ont do the trick. -mark Original Message: ----------------- From: Bob Cozzi cozzi@rpgiv.com Date: Wed, 15 Jan 2003 12:09:35 -0600 To: rpg400-l@midrange.com Subject: RE: Removing punctuation (not using arrays) As does XLATE. -----Original Message----- From: rpg400-l-bounces@midrange.com [mailto:rpg400-l-bounces@midrange.com] On Behalf Of Jon Paris Sent: Wednesday, January 15, 2003 11:40 AM To: rpg400-l@midrange.com Subject: Removing punctuation (not using arrays) >> And how is this different from a single-line XLATE opcode, except that is handles two or more of the unwanted characters when they are consecutive in the original string? It isn't. One of the earlier posts raised the issue of consecutive "unwanted" - this deals with it. Jon Paris Partner400 _______________________________________________ This is the RPG programming on the AS400 / iSeries (RPG400-L) mailing list To post a message email: RPG400-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/mailman/listinfo.cgi/rpg400-l or email: RPG400-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/rpg400-l. -------------------------------------------------------------------- mail2web - Check your email from the web at http://mail2web.com/ .
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.