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

Split at #5

Former Member
0 Likes
302

Dear All,

I am reading the RAW data of the spool character

Now I want to split the data at #5

But program is not splitting. I have tried using Hexa decimal also. If I split at 5 program is splitting.

Also i tried using below mentioned code

it is working but for the spool data it is not working.

please let me know what is the issue.

DATA: NAMES(30) TYPE C VALUE 'Charly#5John#5Peter',

NAMES2 TYPE STRING,

ONE(100) TYPE C,

TWO(100) TYPE C,

THREE TYPE STRING,

FOUR(4) TYPE C VALUE 'FOUR',

DELIMITER(2) VALUE '#5'.

SPLIT NAMES AT DELIMITER INTO ONE TWO THREE.

SPLIT NAMES AT '#5' INTO ONE TWO THREE.

1 REPLY 1
Read only

b_deterd2
Active Contributor
0 Likes
286

I'm not sure about the RAW datatype but try using SPLIT AT...IN BYTE MODE.

Hope it helps,

Bert