Hi,
I am getting files from 2 source, each sending some data.
My job is to take these 2 files and identify a row starting from 98 as shown below in each of the file.
File1: 98,123000000,12,12
File2: 98,123,12,12
Now the data after the first comma(,) is amount and I need to add them and finally generate a new file with the value as below. I don't know the exact length of bolded values since its amount field.
Final File: 98,123000123,12,12
Please advice me.
Help me asap
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
"Help me asap"? If you tell us what asap means as a verb, then perhaps we may be able to help one or more ways in which you can, actually, asap.
DSXchange is an all-volunteer site whose members post when and if they can. It is not a substitute for official support. We do not do "urgent" in any form and, indeed, find it offensive. If you want "urgent" or "asap", sign up with your support provider for priority service, and learn just how much "urgent" costs.
DSXchange is an all-volunteer site whose members post when and if they can. It is not a substitute for official support. We do not do "urgent" in any form and, indeed, find it offensive. If you want "urgent" or "asap", sign up with your support provider for priority service, and learn just how much "urgent" costs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Sort funnel the rows from the two sources then use Aggregator stage as suggested. If you only want 98 as output, use a Switch, Filter or Transformer stage to effect the desired filtering.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.