Author: Abid Hasan
Subject: Re: Sort two file having same field, one fields Less than other.
Posted: Thu Feb 02, 2017 11:18 am (GMT 5.5)
Hello,
Once the records have been JOINed and REFORMATted, use INCLUDE function of OUTFIL (provided you're using it; since you haven't shown your JOINKEYS) to test whether the column 'n' from DS-A is LT or GT the column 'm' of DS-B.
Note that at this point, if the records from the two DS match, the joined records will all lie on the same row hence can be easily tested using INCLUDE/OMIT features of DFSORT.
Hope this helps.
_________________
Thanks.
Subject: Re: Sort two file having same field, one fields Less than other.
Posted: Thu Feb 02, 2017 11:18 am (GMT 5.5)
Hello,
himanshu malik wrote: |
... Cond:1 Key will match, that can be handled by join key. Cond 2 : 2nd field in File B < 2nd field in File A. How can this be handled. ... |
Once the records have been JOINed and REFORMATted, use INCLUDE function of OUTFIL (provided you're using it; since you haven't shown your JOINKEYS) to test whether the column 'n' from DS-A is LT or GT the column 'm' of DS-B.
Note that at this point, if the records from the two DS match, the joined records will all lie on the same row hence can be easily tested using INCLUDE/OMIT features of DFSORT.
Hope this helps.
_________________
Thanks.