2008 Jul 21 1:26 PM
Hi,
i have strings like :
1000115
and i wont to turn it to 1000-115
or i have 100042
i wont 1000-042
what is the simple way to do that?
Regards
2008 Jul 21 1:30 PM
hi,
something like:
CONCATENATE string(4) string+4(3) INTO .... SEPARATED BY '-'.
of course, this can vary, depending on the exact rule you need
hope this helps
ec
Hi,
i have strings like :
1000115
and i wont to turn it to 1000-115
or i have 100042
i wont 1000-042
what is the simple way to do that?
Regards
2008 Jul 21 1:30 PM
hi,
something like:
CONCATENATE string(4) string+4(3) INTO .... SEPARATED BY '-'.
of course, this can vary, depending on the exact rule you need
hope this helps
ec
2008 Jul 21 1:31 PM
hi,
use concatenate.
ex.
DATA:
v_value(7) type c value '1000115',
v_temp(8) type c.
concatenate v_value(4) '-' v_value+4 int v_temp.
regards,
Peter
2008 Jul 21 1:32 PM
concatenate v_string0(4) '-' v_string4(3) into v_string1.
write 😕 v_string1.
2008 Jul 21 1:32 PM
hiii
you can do it by using offset values like follows
data:
string1 = w_final+4.
string2 = w_final+4(3).
CONCATENATE string1 string2 INTO string SEPARATED BY '-'.
regards
twinkal
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |