2009 Oct 30 9:04 AM
Dear All,
I have a string like this:
String = 'TOTO¤TITI¤TATA'
The ASCII code of character ¤ is = 0xA4.
I can't use the Split function with the character '¤'.
I search methods in forum but without success...
Any Help ?
Thanks a lot,
Rodolphe.
2009 Oct 30 9:14 AM
I cnat see why you cant use the character for splitting.
2009 Oct 30 9:12 AM
2009 Oct 30 9:14 AM
2009 Oct 30 9:19 AM
Hello Rainer,
I think the OP has given this as an example
For him the spl. character may be dynamic.
BR,
Suhas
2009 Oct 30 9:35 AM
Split command does not care if this is a constant or a variable.
2009 Oct 30 9:22 AM
Thanks it works!
Rodolphe.
Edited by: Rodolphe LALOUX on Oct 30, 2009 10:22 AM
2009 Oct 30 9:44 AM
Hi,
Check the below code.
data: fs_string(15) type c VALUE 'TOTO¤TITI¤TATA'.
DAta: c_hextab(1) type c VALUE '¤'.
data: tcode(10) type c,
comp(10) type c,
seq(10) type c.
data: tcode1(10) type c,
comp1(10) type c,
seq1(10) type c.
SPLIT fs_string
AT c_hextab
INTO tcode
comp
seq.
move tcode to tcode1.
move comp to comp1.
move seq to seq1.
write:/ tcode1,
comp1,
seq1.
Regards
VEnk@
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |