2008 Dec 17 2:46 PM
hi there.....
i want to concatenate ' with a string. how can i do that....
i mean ...
supppose i hav str1 = 'string'.
i want to do
concatenate ' str1 ' into str2. to get
str2 = ''string''.
thanks and regards
2008 Dec 17 2:48 PM
you need four apostrophes:
CONCATENATE '''' str1 '''' INTO str2.
hi there.....
i want to concatenate ' with a string. how can i do that....
i mean ...
supppose i hav str1 = 'string'.
i want to do
concatenate ' str1 ' into str2. to get
str2 = ''string''.
thanks and regards
2008 Dec 17 2:48 PM
you need four apostrophes:
CONCATENATE '''' str1 '''' INTO str2.
2008 Dec 17 2:48 PM
perhaps
supppose i hav str1 = 'string'.
i want to do
concatenate ''' str1 '' into str2. to get
str2 = ''string''.
2008 Dec 17 2:58 PM
If your query is as follows :
str1 = string
and you want str2 = "string1" i.e., if you want to concatenate only double quotes (") at the beginning and at the end of the string. Then you can refer this code snippet.
DATA str1(10) VALUE 'string1'.
DATA str2(13) TYPE c.
CONCATENATE '"' str1 '"' INTO str2.
WRITE str2.
Now str2 will contain "string1".
2008 Dec 17 3:00 PM
hey thr.... plz note i want to concatenate single quotes nd not double....
2008 Dec 17 3:04 PM
Prem:
1. pls. answer to the person you "talk" to, not to yourself (to make it clear, who do you address your comment)
2. First try out, if the advise works, after that you can still comment in case it does not work...
2008 Dec 17 3:01 PM
Hi,
As per your requirement use the following statement
concatenate '''''' string1 '''''' into string2.
Here u will get the result like string2 = ''string''.
Regards,
Kumar
2008 Dec 17 3:02 PM
Hi,
I dont understand the requirement...
Anyways
CONCATENATE '"' str1 '"' INTO str2.
Thanks,
Krishna...
| User | Count |
|---|---|
| 3 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |