View previous topic :: View next topic
|
Author |
Message |
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Hi,
I want to use STRING command to do the following.
First Name (20) - SREE RAM
secon name(20) - SHYAM BOSS
can any one provide me the STRING command to get the following Result.
O/p- SREE RAM SHYAM BOSS
Thanks,
Sree |
|
Back to top |
|
|
guptae
Moderator
Joined: 14 Oct 2005 Posts: 1208 Location: Bangalore,India
|
|
|
|
Hi Sree,
Code: |
STRING First Name
DELIMITED BY SIZE
' '
secon name
DELIMITED BY SIZE
INTO WS-VAR |
|
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
hi,
thanks a lot Ekta ..i will try it out.
Regards,
Sree |
|
Back to top |
|
|
William Thompson
Global Moderator
Joined: 18 Nov 2006 Posts: 3156 Location: Tucson AZ
|
|
|
|
sreekusr wrote: |
I want to use STRING command to do the following.
First Name (20) - SREE RAM
secon name(20) - SHYAM BOSS
O/p- SREE RAM SHYAM BOSS |
Assuming that names might have single spaces imbeded but not two or more imbeded spaces:
Code: |
string first delimited by ' '
space delimited by size
second delimited by ' '
into outarea |
should work.... |
|
Back to top |
|
|
sreekusr Warnings : 1 New User
Joined: 28 Aug 2006 Posts: 54 Location: Madrid
|
|
|
|
Thank you Mr.William .
It worked.
Regards
Sree |
|
Back to top |
|
|
|