|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Implementing Insert |
« View previous topic :: View next topic » |
Author |
Message
|
mayur2378 |
Posted: Wed Sep 15, 2004 8:39 am Post subject: Implementing Insert |
|
|
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..
|
|
Back to top |
|
 |
PGoodhart |
Posted: Wed Sep 15, 2004 8:53 am Post subject: |
|
|
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 |
|
 |
kirani |
Posted: Wed Sep 15, 2004 3:26 pm Post subject: |
|
|
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 |
|
 |
mayur2378 |
Posted: Thu Sep 16, 2004 6:15 am Post subject: |
|
|
Apprentice
Joined: 26 May 2004 Posts: 47
|
Got it to work...Thankz for all the help
Mayur |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|