AS/400 CLLE: Scan and replace with other character in CL program

435 pts.
Tags:
AS 400
CL Program
CLLE
How to scan for a position and replace that with some other character in CL program? eg : Name = 'Vivek' i should replace 'e' with 'o'. How can I do that in CLLE?

Answer Wiki

Thanks. We'll let you know when a new response is added.

Check out the manual here for the explanation and some examples.

Discuss This Question: 3  Replies

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.
  • Splat
    Show us your code & we can make suggestions.
    12,420 pointsBadges:
    report
  • vivekntt21
    The example is here eg : Name = 'Vivek' i should replace 'e' with 'o'. How can I do that in CLLE? 
    435 pointsBadges:
    report
  • ToddN2000
    text = 'Vivek'
    newtext = %ScanRpl('e' : 'o' : text);
    102,270 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: