I have a little experience using sort cards, and need help on the below as am unable to get an idea as to which approach should be good.
But feel sort can help me(we only have Syncsort with us)
If you dint understand below please let me know.
File A
Col_A B C D XYZ(some other column)
AAAA BBBB 1111 3333 ********
DDDD BBBB 1111 2222 ##**#*#*#
EEEE BBBB 2222 5555 @@##$$$$
QQQQ PQRS 0999 2100 &*^%&%**
ZZZZ BBBB 0000 4444 *($*#)#
AAAA BBBB 1111 3333 ********
DDDD BBBB 1111 2222 ##**#*#*#
EEEE BBBB 2222 5555 @@##$$$$
QQQQ PQRS 0999 2100 &*^%&%**
ZZZZ BBBB 0000 4444 *($*#)#
File B
COL_A B C D E
AAAA BBBB 2222 4444 cap
AAAA BAAB 2222 4444 cap
DDDD BBBB 3333 1111 rat
EEEE BBBB 2222 4444 mat
ZZZZ BYYB 2222 4444 pit
ZZZZ BBBB 0000 4444 nit
QQQQ PQRS 1000 2000 kit
AAAA BBBB 2222 4444 cap
AAAA BAAB 2222 4444 cap
DDDD BBBB 3333 1111 rat
EEEE BBBB 2222 4444 mat
ZZZZ BYYB 2222 4444 pit
ZZZZ BBBB 0000 4444 nit
QQQQ PQRS 1000 2000 kit
I need to find a matching row from B where
Columns
A[file_A] ==A[file_B]
AND
B[file_A] ==B[file_B]
AND
C[file_A] <=C[file_B]
AND
D[file_A] >=D[file_B]
(Note:The file_B will not have multiple records satisfying the above condition)
Resultant File C will look like
Col_A B C D XYZ(some other column) E
AAAA BBBB 1111 3333 ********
DDDD BBBB 1111 2222 ##**#*#*# rat
EEEE BBBB 3333 2222 @@##$$$$ mat
QQQQ PQRS 0999 2100 &*^%&%** kit
ZZZZ BBBB 0000 4444 *($*#)# nit
AAAA BBBB 1111 3333 ********
DDDD BBBB 1111 2222 ##**#*#*# rat
EEEE BBBB 3333 2222 @@##$$$$ mat
QQQQ PQRS 0999 2100 &*^%&%** kit
ZZZZ BBBB 0000 4444 *($*#)# nit
(note: A dint have any matching column; so E is blank)
Many thank for looking!
Please direct me to any link/idea/example, will be very helpful.