Application Development 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: 

Split a field and place head into one and tail into a different one

Former Member
0 Kudos

Hi,

What I want to do is search a field (contains string) for '/' and anything before the '/' goes into one field and anything after '/' goes into another.

Do I want to use the split syntax?

2 REPLIES 2

Former Member
0 Kudos

Yes

SPLIT var at '/' into head tail.

You can use .

Regards

Nishant

Former Member
0 Kudos

DATA : names type char10 value 'sss/rrr',
       name1 type char10,
       name2 type char10,
       DELIM type char1 value '/'.


SPLIT NAMES AT DELIM INTO name1 name2.