|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to over write duplicte records ina file |
« View previous topic :: View next topic » |
Author |
Message
|
MQ_LEO |
Posted: Wed Aug 23, 2006 8:10 am Post subject: How to over write duplicte records ina file |
|
|
Apprentice
Joined: 06 Jul 2006 Posts: 29
|
Hi every body,
Iam using WBIMBV6.0 with file extender nodes.
Iam writing my MQ output message as a file.
How can i find a duplicate record in a file.
example :
I write a record to file with data llike ssn , name etc.
my file contains data like
123456 , ugbcg , jkj;jj
78910 , rudfudi , uidtut
4567 , uitgugf , uioodt.
Now iam writing a duplicate record containg data
123456 abcd yudydy. to output file.
My question is how can i replace old data with new one. Is there any method to do that. please give me some idea.
Thanks
MQ_LEO |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Aug 23, 2006 9:00 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
I would find the duplicate record before you write it to the file.
You will have to write code to do this. It's not hard code to write, if you think about it. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 23, 2006 1:39 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You should look at your file in sorted manner. See your OS's sort utilities. Some will even handle the sort / merge and give you a new file with all the changes and the overwrite....
Enjoy  _________________ MQ & Broker admin |
|
Back to top |
|
 |
MQ_LEO |
Posted: Wed Aug 23, 2006 2:45 pm Post subject: |
|
|
Apprentice
Joined: 06 Jul 2006 Posts: 29
|
Hi fjb_saper,
Can you elobrate litte bit more.
MQ_LEO |
|
Back to top |
|
 |
fjb_saper |
Posted: Wed Aug 23, 2006 8:19 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
You really need to talk to your OS people (network services/ os maintenance etc...) and ask them what the capabilities of their sort / merge utilities are. You may then find out whether or not they will have a utility that suits you. Be not afraid to describe in detail what your need is...
Enjoy  _________________ MQ & Broker admin |
|
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
|
|
|
|