View previous topic :: View next topic |
Author |
Message |
me_naveen Beginner
Joined: 21 Dec 2007 Posts: 23 Topics: 12
|
Posted: Thu Jun 28, 2018 8:10 am Post subject: Split email field into two tokens |
|
|
Hi,
Would it be possible to split the below special email string ( Ex: size is 50 characters) in COBOL.
email string = "splspl@spl@matrix.com"
local token ==> "splspl@spl
domain token ==> matrix.com"
Split is required using the 2nd '@' symbol before the domain token.
If we have only one @ symbol we could implement using inspect verb easily.
But,in this case we have 2 @ symbols in email string.
Please guide me if we have a chance to split using INSPECT or any other verb.
Thanks in advance.
nav. |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12375 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
me_naveen Beginner
Joined: 21 Dec 2007 Posts: 23 Topics: 12
|
Posted: Fri Jun 29, 2018 1:42 am Post subject: |
|
|
Yes. It is working fine.
Thank You Kolusu.
Thanks,
Nav. |
|
Back to top |
|
|
|
|