View previous topic :: View next topic
|
Author |
Message |
gaurav jain
New User
Joined: 08 Sep 2005 Posts: 1
|
|
|
|
Hello
I have a scenerio where I have to concatenate two strings . I would like to know the advantages and disadvantages of using STRING statment over MOVE statment ,that requires me to put the start place and length of the string ?
Will the use of STRING statment hampers performace in any ways and is there any operator (like || in PL/I ) that can be used directly in here |
|
Back to top |
|
|
priyesh.agrawal
Senior Member
Joined: 28 Mar 2005 Posts: 1448 Location: Chicago, IL
|
|
|
|
Hi Gaurav,
Obviously it should be MOVE, more efficient, if it can do what you are trying to do with STRING. But STRING gives you some other features like ON OVERFLOW etc. whcih MOVE can't.
So it should depend on I/P string coming the way...
EXPERTS any comment.....?????
Regards,
Priyesh. |
|
Back to top |
|
|
michaelraj
New User
Joined: 01 Sep 2005 Posts: 43 Location: Bangalore
|
|
|
|
Hi,
I think going for String statement would be more advantage than going for Move statement. As using String Statement we can concatenate some of the characters of a string only with using Delimiters. We can also know how many characters are concatenated, if we would likely to know. The main advantage is we can handle the situation, if there is an overflow in the destination variable.
Regards,
Mike. |
|
Back to top |
|
|
|