cancel
Showing results for 
Search instead for 
Did you mean: 

STRING OPERATIONS

Former Member
0 Kudos

I am having a string of 36 length..

ex : str = 902323209382093823820302983

I need to extract the first ten values

next four and then next four like...

how to do this

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi,

try like this,

declare variables of type character [specify no of characters which u want and

str1 =str+0(10).

str2 =str+10(4).

str2 = str + 14(4).

................

if helpful reward some points.

with regards,

Suresh ALuri.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi.

data: 
      Str1(10) type c,
      str2(4) type c.

Str1 = Str+0(10).  " First 10 charecters
str2 = str+11(4).   " from 11th charecter it will take 4

Regards

Sudheer