Author: Susanta
Subject: Joinkeys operation when key1 and key2 is of different length
Posted: Wed Nov 02, 2016 5:35 pm (GMT 5.5)
hI
i have a requirement to match 2 files..
file 1: 16 bytes in lenght
file 2 : 28 bytes in length
file1: content having filed 1 of 16 bytes whee some values are of 14 byte with traling 2 byte spaces and soem are actual 16 bytes
12345678901234
12345678901230
1234567890123456
1234567890123450
file2: content having filed1 filed2 of 14 bytes
1234567890123412345678901211
1234567890123012345678901222
need to match file1 16 bytes without considering trailing spaces to 14 byte filed1 of file 2 and replace filed1 with filed2 if mathc found.
my query is can we have as below where diffreent lenght is used for F1 and F2.?
I assume Joinkeys for example will consider 'ABC ' as 'ABC' as same .
ignoring trailing spaces is that so?
_________________
Regards
Subject: Joinkeys operation when key1 and key2 is of different length
Posted: Wed Nov 02, 2016 5:35 pm (GMT 5.5)
hI
i have a requirement to match 2 files..
file 1: 16 bytes in lenght
file 2 : 28 bytes in length
file1: content having filed 1 of 16 bytes whee some values are of 14 byte with traling 2 byte spaces and soem are actual 16 bytes
12345678901234
12345678901230
1234567890123456
1234567890123450
file2: content having filed1 filed2 of 14 bytes
1234567890123412345678901211
1234567890123012345678901222
need to match file1 16 bytes without considering trailing spaces to 14 byte filed1 of file 2 and replace filed1 with filed2 if mathc found.
my query is can we have as below where diffreent lenght is used for F1 and F2.?
I assume Joinkeys for example will consider 'ABC ' as 'ABC' as same .
ignoring trailing spaces is that so?
Code: |
JOINKEYS FILE=F1,FIELDS=(1,16,CH,A) JOINKEYS FILE=F2,FIELDS=(1,14,CH,A) |
_________________
Regards