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 prepared ESQL in compute node for insert data into DB2

Post new topic  Reply to topic
 I prepared ESQL in compute node for insert data into DB2 « View previous topic :: View next topic » 
Author Message
raghug
PostPosted: Tue Oct 17, 2006 4:40 pm    Post subject: I prepared ESQL in compute node for insert data into DB2 Reply with quote

Acolyte

Joined: 19 Jul 2006
Posts: 60
Location: NJ

I prepared ESQL for insert data into DATA base (DB2) like below
1)
DECLARE PRO_NUM CHARACTER;
DECLARE LE_NUM INTEGER;
DECLARE MVE_NUM INTEGER;
so .....on..............60 fields
2)
SET PRO_NUM = InputRoot.MRM.WTRK_TRAN.WTRK_HDR.STATUS_UPD_REC.PRONUM;
SET LE_NUM = InputRoot.MRM.WTRK_TRAN.WTRK_HDR.STATUS_UPD_REC.NENUM;
SET MOVE_NUM = InputRoot.MRM.WTRK_TRAN.TTTRK_HDR.STATUS_UPD_REC.MNO;
so...on...............60 fields
3)
INSERT INTO Database.{DBSource}.{DBSchema}.{DBTTTRKTable}
(NUM, NENUM, MNO so on....)

4)
VALUES(InputRoot.MRM.TTTRK_TRAN.TRK_HDR.STATUS_UPD_REC.NUM,
InputRoot.MRM.TRK_TRAN.TTTRK_HDR.STATUS_UPD_REC.NENUM,
InputRoot.MRM.WTRK_TRAN.WTRK_HDR.STATUS_UPD_REC.MNO, so on.....



But after this code the date will not insert into Data Base what I need code ... give me exmpl atlest two lines
Back to top
View user's profile Send private message Yahoo Messenger
bindu
PostPosted: Tue Oct 17, 2006 8:57 pm    Post subject: Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

DECLARE TIMEOF_UPDATE DATETIME;

then it will insert into database
Back to top
View user's profile Send private message
elvis_gn
PostPosted: Tue Oct 17, 2006 9:24 pm    Post subject: Reply with quote

Padawan

Joined: 08 Oct 2004
Posts: 1905
Location: Dubai

Hi bindu,
bindu wrote:
DECLARE TIMEOF_UPDATE DATETIME;

then it will insert into database
Where in the code, did you figure that out from ?

Regards.
Back to top
View user's profile Send private message Send e-mail
bindu
PostPosted: Tue Oct 17, 2006 10:12 pm    Post subject: Reply with quote

Voyager

Joined: 07 May 2004
Posts: 97

Hi,
i got Variable declaration so based on that i suggested to declare all Date variables like DATETIME instead of char.

Thank you,
Bindu
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 prepared ESQL in compute node for insert data into DB2
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.