ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Appending string using ESQL

Post new topic  Reply to topic
 Appending string using ESQL « View previous topic :: View next topic » 
Author Message
mmarq
PostPosted: Wed Nov 06, 2002 10:45 am    Post subject: Appending string using ESQL Reply with quote

Acolyte

Joined: 19 Sep 2002
Posts: 74
Location: Newton, MA

It doesn't look like I can do the following:

set stringA = stringB + stringC;

How do I append strings in ESQL?

Thanks,
Melissa
_________________
M Marquis
Back to top
View user's profile Send private message Visit poster's website AIM Address
mmarq
PostPosted: Wed Nov 06, 2002 10:58 am    Post subject: Answer my own question Reply with quote

Acolyte

Joined: 19 Sep 2002
Posts: 74
Location: Newton, MA

So, for whatever reason, I didn't see the overlay function in the ESQL doc until after I did the post so the answer is:


stringA = overlay(stringA PLACING stringB from (length(stringA)+1) for length(stringB));
_________________
M Marquis
Back to top
View user's profile Send private message Visit poster's website AIM Address
cute_pav
PostPosted: Wed Nov 06, 2002 11:10 am    Post subject: Reply with quote

Acolyte

Joined: 04 Jan 2002
Posts: 65
Location: usa

>>set stringA = stringB + stringC;

How do I append strings in ESQL?

Ans: SET stringA = stringB || stringC;

(Overlay is expensive function just to append strings )

pavan
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
mmarq
PostPosted: Wed Nov 06, 2002 1:24 pm    Post subject: Reply Reply with quote

Acolyte

Joined: 19 Sep 2002
Posts: 74
Location: Newton, MA

Thanks!


So, I can do

set stringA = stringB || stringC || .... on and on?

Thanks - I thought the overlay stuff looked kind of heavy for what I needed to do which is concatenate about 6 items.

-M
_________________
M Marquis
Back to top
View user's profile Send private message Visit poster's website AIM Address
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Appending string using ESQL
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.