help in job logic
Moderators: chulett, rschirm, roy
help in job logic
HI,
Today i have faced this question in interview.
my 2 input files A , B are as given below
A
__
1
2
B
__
3
4
My output file C should be
C
__
1,3
2,4
How to implement this in job level?
Thanks
Today i have faced this question in interview.
my 2 input files A , B are as given below
A
__
1
2
B
__
3
4
My output file C should be
C
__
1,3
2,4
How to implement this in job level?
Thanks
pandeeswaran
I'd rather see if you can work it out on your own with some help rather than just provide a solution... teach a man to fish and all that. Did you look to see what paste does? Have you tried to put the requirement into words? A lot of times, simply spelling out what needs to be done can lead you to the solution.
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
hi Craig,
I can achieve this by the following design:
2 Seq file stages -----> Transformer stage -----> Seq file stage(record delimiter=',')
We can have 2 fields in the target seq file. Since the record delimiter is ',',
the result will look like 1,1
2,2
3,3
Am i correct?
Is there any other way to do this?
Thanks
I can achieve this by the following design:
2 Seq file stages -----> Transformer stage -----> Seq file stage(record delimiter=',')
We can have 2 fields in the target seq file. Since the record delimiter is ',',
the result will look like 1,1
2,2
3,3
Am i correct?
Is there any other way to do this?
Thanks
pandeeswaran
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Re: help in job logic
Examples are always seems to be simple.
A
__
1
2
5
6
B
__
3
4
7
what should be the ouput in C?
A
__
1
2
5
6
B
__
3
4
7
what should be the ouput in C?
Re: help in job logic
What is your source?
Re: help in job logic
That was noted in the first post.SURA wrote:What is your source?
-craig
"You can never have too many knives" -- Logan Nine Fingers
"You can never have too many knives" -- Logan Nine Fingers
Re: help in job logic
There is no direct way to do it. Still you can do it.
Need to make one identy col as a key to join two links. Use join stage (full outer for safer) and the in the TFM combined the col.
Need to make one identy col as a key to join two links. Use join stage (full outer for safer) and the in the TFM combined the col.