Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

substring delete

Former Member
0 Likes
456

hi,

may i know how to delete a substring in a string and the remaining string can move to the left.

for example :

401011DELEC345,99REF

i need to delete "DELE" which is wa_tab+6(4) to become as below :

401011C345,99REF

thanks

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
426

You can use REPLACE to replace the desired part of string by space and then use CONDENSE command to remove the spaces.

ashish

hi,

may i know how to delete a substring in a string and the remaining string can move to the left.

for example :

401011DELEC345,99REF

i need to delete "DELE" which is wa_tab+6(4) to become as below :

401011C345,99REF

thanks

1 REPLY 1
Read only

Former Member
0 Likes
427

You can use REPLACE to replace the desired part of string by space and then use CONDENSE command to remove the spaces.

ashish