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 » truncate table before upload data

Post new topic  Reply to topic
 truncate table before upload data « View previous topic :: View next topic » 
Author Message
golovonometr
PostPosted: Mon Jun 29, 2015 12:14 am    Post subject: truncate table before upload data Reply with quote

Newbie

Joined: 29 Jun 2015
Posts: 3

Sorry for my bad english

I have a app with two message flows (reading and saving), first flow reading data from csv file, second flow inserting data to database. This good working, but i need truncate tables before first message was added to queue. Global variables don't working in different flows ((

??
Back to top
View user's profile Send private message
smdavies99
PostPosted: Mon Jun 29, 2015 2:20 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.

Send a 'sepcial' message from the first flow to the second when the file is opened. Then the second flow can truncate the table as a distinct unit of work.
Once the special message has been sent, send the data normally.
_________________
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
golovonometr
PostPosted: Mon Jun 29, 2015 3:11 am    Post subject: Reply with quote

Newbie

Joined: 29 Jun 2015
Posts: 3

smdavies99, thx

Quote:
Send a 'sepcial' message from the first flow to the second when the file is opened. Then the second flow can truncate the table as a distinct unit of work.
Once the special message has been sent, send the data normally


but ibm integration bus (InputFile node) don't supporting 'start' property, for sending special message. [/quote]
Back to top
View user's profile Send private message
nelson
PostPosted: Mon Jun 29, 2015 4:29 am    Post subject: Reply with quote

Partisan

Joined: 02 Oct 2012
Posts: 313

You can use LocalEnvironment.File.Record property, so you will know when the first record is being processed and do what you need to do:

Quote:
Record: Number of the record within the file. The first record is record number 1. If this element is part of the End of Data message tree, this value is the number of records.


https://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac55410_.htm
Back to top
View user's profile Send private message
golovonometr
PostPosted: Mon Jun 29, 2015 5:55 am    Post subject: Reply with quote

Newbie

Joined: 29 Jun 2015
Posts: 3

nelson wrote:
You can use LocalEnvironment.File.Record property, so you will know when the first record is being processed and do what you need to do:

Quote:
Record: Number of the record within the file. The first record is record number 1. If this element is part of the End of Data message tree, this value is the number of records.


https://www-01.ibm.com/support/knowledgecenter/SSMKHH_9.0.0/com.ibm.etools.mft.doc/ac55410_.htm


thx! this works!
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 » truncate table before upload data
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.