RC=0,but output file1 is having all the rows as unmatched,because of the second key field and
output file 2 is having zero length record that is no match rows from F1&F2,this is not a correct result,i tried as a single join it is working,but i want to know can i use two keyfields like a normal join ?
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Quote:
can i use two keyfields like a normal join ?
As I have already told you, it IS possible.
Quote:
RC=0,but output file1 is having all the rows as unmatched,because of the second key field and
output file 2 is having zero length record that is no match rows from F1&F2,this is not a correct result,i tried as a single join it is working,but i want to know can i use two keyfields like a normal join ?
I really have no clues on what exactly is your problem here. What do you mean by 'zero length record'? And how do you know that the problem is due to the second key field?
If i am comapring the files using single key values i am getting the correct answer,if i use the double key values i am not getting the correct answer.
JOINKEYS FILES=F1,FIELDS=(20,5,A,75,5,A)
JOINKEYS FILES=F2,FIELDS=(20,5,A,75,5,A) -not working
JOINKEYS FILES=F1,FIELDS=(20,5,A)
JOINKEYS FILES=F2,FIELDS=(20,5,A)-this is working fine
JOINKEYS FILES=F1,FIELDS=(75,5,A)
JOINKEYS FILES=F2,FIELDS=(75,5,A)-this is also working fine,
can u understand the exact problem,i hope u will send the solution
Joined: 23 Nov 2006 Posts: 19244 Location: Inside the Matrix
Hello,
It may help if you post the complete informational output from the execution of a join that works correctly and the one that is giving the undesired output.
Joined: 17 Oct 2006 Posts: 2481 Location: @my desk
Adding to what Dick has asked above,
It would be better if you post a few sample input records, the expected output and the actual output you are getting currently. It would n't be proper to offer suggestions/solutions without really knowing what exactly is your requirement/problem.
The number of JOINKEYS fields and their lengths and sorted order (A or D) must be the same for both files, although their starting positions need not be the same.
The maximum number of JOINKEYS fields is 64 and all JOINKEYS fields will be treated as binary, though bit fields are not permitted.