Lookup file sets
Posted: Fri Jan 07, 2005 12:30 pm
Lookup Filesets
Im trying to use Lookupfile sets with a Lookup Stage. There seems to be a problem somewhere that I can't understand.
Lets assume we have a table - EMP with the fields :
EMPNO
DEPTNO
ENAME
SAL
MGR
We have a Lookupfileset DEPT with the fields :
DEPTNO
DEPT
Say, the Lookupfile Set was created with the Lookup key = DEPTNO.
We have a target sequential file Employee_details.DAT with all the
fields :
EMPNO
DEPTNO
ENAME
SAL
MGR
DEPTNO
DEPT
In the Lookup Stage. Do we have to map anything for the above scenario?
In the Input fields and Output fields? If we do, mapping between the input sources the lookupfileset(DEPT) and the Table (EMP) cannot be done. So how do we pass the data to the Output file? May be Im not understanding the Lookupfileset properly.
Thanks,
MH
Im trying to use Lookupfile sets with a Lookup Stage. There seems to be a problem somewhere that I can't understand.
Lets assume we have a table - EMP with the fields :
EMPNO
DEPTNO
ENAME
SAL
MGR
We have a Lookupfileset DEPT with the fields :
DEPTNO
DEPT
Say, the Lookupfile Set was created with the Lookup key = DEPTNO.
We have a target sequential file Employee_details.DAT with all the
fields :
EMPNO
DEPTNO
ENAME
SAL
MGR
DEPTNO
DEPT
In the Lookup Stage. Do we have to map anything for the above scenario?
In the Input fields and Output fields? If we do, mapping between the input sources the lookupfileset(DEPT) and the Table (EMP) cannot be done. So how do we pass the data to the Output file? May be Im not understanding the Lookupfileset properly.
Thanks,
MH