01-09-2008 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
01-09-2008 7:42 AM
01-09-2008 7:42 AM
01-09-2008 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
01-09-2008 7:44 AM
shift <string> right deleting trailing space.
shift <string> right
01-09-2008 7:44 AM
01-31-2008 5:13 PM
try this:
w_len = STRLEN( w_rcd ).
w_len = w_len - 1.
w_rcd = w_rcd+0(w_len).
06-02-2023 2:41 PM
lv_str = reverse( lv_str ).
lv_str = lv_str+1.
lv_str = reverse( lv_str ).
07-13-2023 2:26 PM
DATA(last_index) = strlen( input ) - 1.
input = input+index(length).
##new input is without last character.