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 » Implementing Insert

Post new topic  Reply to topic
 Implementing Insert « View previous topic :: View next topic » 
Author Message
mayur2378
PostPosted: Wed Sep 15, 2004 8:39 am    Post subject: Implementing Insert Reply with quote

Apprentice

Joined: 26 May 2004
Posts: 47

Hey guys,

i am using WBIMB 5.0.3, DB28.1.2, Windows Xp
i have this problem i am struggling with .

My situation is i have to capture an SQL code(Insert) in a variable which is passed to a subflow. Now inside the subflow i am using a compute node to insert the data into a DB2 database.. Let me give u a better picture

Environment.Patterns.DBConnSQL='INSERT INTO bulletin ('||received_dt||','||create_dt||','||uuid||','||tt||'
,'||aa||','||ii||','||cccc||','||yygggg||','||bbb_group||'
,'||awips_id||','||file_name||','||file_path||','||src_seq_num||'
,'||source_id||','||chk_sum||','||datalength||','||bulletin_data||')
VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?),'||RcvdDate||','||MyDate||','||uid||','||tt||','||aa||'
,'||ii||','||cc||','||YYGGgg||','||bbb||','||awips||','||FileName||'
,'||FilePath||','||SQN||','||SID||','||checksum||','||bulllength||','||bull||')';


After this , its passed to the SUbflow and the compute node inside the Subflow implements

set Environment.Patterns.DBConnResults[]
=passthru(Environment.Patterns.DBConnSQL);


When i try to deploy these files it gives me an error that correlation name 'recieved_dt' is not vaild..

Have tried various combinations for the insert statement. but no success.Was wondering if somebody out there could guide me to what i am doing wrong..



Code:
Back to top
View user's profile Send private message Yahoo Messenger
PGoodhart
PostPosted: Wed Sep 15, 2004 8:53 am    Post subject: Reply with quote

Master

Joined: 17 Jun 2004
Posts: 278
Location: Harrisburg PA

I think you may have a problem with quotes. You need to escape them properly for your code to work.
_________________
Patrick Goodhart
MQ Admin/Web Developer/Consultant
WebSphere Application Server Admin
Back to top
View user's profile Send private message
kirani
PostPosted: Wed Sep 15, 2004 3:26 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

I don't think you will need so many single quotes.
Code:

Environment.Patterns.DBConnSQL='INSERT INTO bulletin ( received_dt , create_dt ,  uuid , tt, aa , ii ,
cccc , yygggg , bbb_group awips_id , file_name , file_path , src_seq_num , source_id , chk_sum ,
datalength , bulletin_data ) VALUES (?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?,?) , RcvdDate , MyDate , uid , tt , aa , ii ,
cc , YYGGgg , bbb , awips , FileName , FilePath , SQN , SID , checksum , bulllength , bull )';


Note: This code is untested.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
mayur2378
PostPosted: Thu Sep 16, 2004 6:15 am    Post subject: Reply with quote

Apprentice

Joined: 26 May 2004
Posts: 47

Got it to work...Thankz for all the help

Mayur
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Implementing Insert
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.