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 » I need esql code for below logic

Post new topic  Reply to topic
 I need esql code for below logic « View previous topic :: View next topic » 
Author Message
akm.murthy
PostPosted: Thu Mar 31, 2016 2:39 am    Post subject: I need esql code for below logic Reply with quote

Newbie

Joined: 31 Mar 2016
Posts: 1

select blobData as count from AIP_INTG_AB where UKID = $SourceID and transactionapp = SubscriptionIdentifier.

Count = 0
Insert record to AIP_INTG_AB with UKID= $SourceID, BlobData= convertoHex(inputpayload), transactionapp='UPS'


else
compare blobData with input message
if equal then ignore by doing audit log entry as complete and audit log message duplicate entry found.


Otherwise
Update the entry in AIP_INTG_AB with new input message and current lastchange date.
Send data to Outbound queue.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Mar 31, 2016 2:48 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

And this relates to what? You're clearly not posting a link, so which forum do you wish this to be moved to?
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 31, 2016 4:10 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Moved to broker forum
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Thu Mar 31, 2016 4:45 am    Post subject: Re: I need esql code for below logic Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

akm.murthy wrote:
select blobData as count from AIP_INTG_AB where UKID = $SourceID and transactionapp = SubscriptionIdentifier.

Count = 0
Insert record to AIP_INTG_AB with UKID= $SourceID, BlobData= convertoHex(inputpayload), transactionapp='UPS'


else
compare blobData with input message
if equal then ignore by doing audit log entry as complete and audit log message duplicate entry found.


Otherwise
Update the entry in AIP_INTG_AB with new input message and current lastchange date.
Send data to Outbound queue.


And what exactly is preventing you from getting ESQL code for this logic? Apart from the part where you're sending data to an outbound queue, which obviously can't be done directly from ESQL>
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Thu Mar 31, 2016 5:08 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

This
Code:

select blobData as count


Would return an Integer

so how can you
Code:

compare blobData with input message


Care to explain?
_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
Back to top
View user's profile Send private message
maurito
PostPosted: Thu Mar 31, 2016 7:37 am    Post subject: Reply with quote

Partisan

Joined: 17 Apr 2014
Posts: 358

smdavies99 wrote:
This
Code:

select blobData as count


Would return an Integer


Why an integer ?, very likely it will not. First of all, the OP has not said whether the SELECT is an IIB select or a PASSTHRU to the db.
Back to top
View user's profile Send private message
timber
PostPosted: Fri Apr 01, 2016 8:41 am    Post subject: Reply with quote

Grand Master

Joined: 25 Aug 2015
Posts: 1292

@akm.murthy: Please explain your scenario more carefully. We are confused.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » I need esql code for below logic
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.