2008 Jan 09 7:38 AM
Hi Gurus,
Is there any way to remove the last character of staring other that finding the string length and doing it?
waiting for reply
Ravi
2008 Jan 09 7:42 AM
2008 Jan 09 7:42 AM
2008 Jan 09 7:42 AM
Finding String Length and Avoiding Last Character in the string by using offset is the only easy way.
If you know the exact length of the variable value, then you can do offset directly.
Regards,
Satish
2008 Jan 09 7:44 AM
shift <string> right deleting trailing space.
shift <string> right
2008 Jan 09 7:44 AM
hi,
SHIFT <string> RIGHT BY 1.
then it will remove last character.
2008 Jan 31 5:13 PM
try this:
w_len = STRLEN( w_rcd ).
w_len = w_len - 1.
w_rcd = w_rcd+0(w_len).
2023 Jun 02 2:41 PM
lv_str = reverse( lv_str ).
lv_str = lv_str+1.
lv_str = reverse( lv_str ).
2023 Jul 13 2:26 PM
DATA(last_index) = strlen( input ) - 1.
input = input+index(length).
##new input is without last character.