DS job logic needed
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 3
- Joined: Fri Jul 03, 2009 1:00 am
DS job logic needed
input file A contains
1
2
3
4
5
6
7
8
9
10
input file B contains
6
7
8
9
10
11
12
13
14
15
Output file X contains
1
2
3
4
5
Output file y contains
6
7
8
9
10
Output file z contains
11
12
13
14
15
How can we do in this in a single ds job in px ?....could you please give me the logic to implement ???
1
2
3
4
5
6
7
8
9
10
input file B contains
6
7
8
9
10
11
12
13
14
15
Output file X contains
1
2
3
4
5
Output file y contains
6
7
8
9
10
Output file z contains
11
12
13
14
15
How can we do in this in a single ds job in px ?....could you please give me the logic to implement ???
You are looking for a full outer join between the two. Look at this topic
viewtopic.php?t=124978&highlight=full+o ... join+stage
viewtopic.php?t=124978&highlight=full+o ... join+stage
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
-
- Participant
- Posts: 152
- Joined: Mon Mar 07, 2011 6:16 am
-
- Participant
- Posts: 3
- Joined: Fri Jul 03, 2009 1:00 am
Re: DS job logic needed
input file A contains
1
2
3
4
5
6
7
8
9
10
input file B contains
6
7
8
9
10
11
12
13
14
15
Output file X contains
1
2
3
4
5
Output file y contains
6
7
8
9
10
Output file z contains
11
12
13
14
15
i need to populate three output files x,y,z.
output x should contatin the data which is present in the input file A and not present in input file B.
output y should contatin the data which is present in the input file A and input file B.
output z should contatin the data which is present in the input file B and not present in input file A.
I've given the input file records as sample only...not a series of numbers...
How can we do in this in a single ds job in px ?....could you please give me the logic to implement ???
1
2
3
4
5
6
7
8
9
10
input file B contains
6
7
8
9
10
11
12
13
14
15
Output file X contains
1
2
3
4
5
Output file y contains
6
7
8
9
10
Output file z contains
11
12
13
14
15
i need to populate three output files x,y,z.
output x should contatin the data which is present in the input file A and not present in input file B.
output y should contatin the data which is present in the input file A and input file B.
output z should contatin the data which is present in the input file B and not present in input file A.
I've given the input file records as sample only...not a series of numbers...
How can we do in this in a single ds job in px ?....could you please give me the logic to implement ???
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 26
- Joined: Thu Aug 12, 2010 12:07 am
-
- Participant
- Posts: 3
- Joined: Fri Jul 03, 2009 1:00 am