Thank you Shong !!
I have input data as in column level and lookup as in row level, need to join both and get the respective Average to populate output.
Input:
ID C1 C2 C3 C4 C5 C6
X123 0 1 0 1 1 0
B456 1 0 1 0 0 0
lookup:
CODES AVERAGE
C1 1.50
C2 0.50
C3 2.50
C4 4.50
C5 3.50
C6 1.50
so trying to use the tSetGlobalVar component and keep the all lookup values in it and fetching through globalMap.get as below
tSetGlobalVar----onsubjobok----> inputfile-----> tmap----->outputfile.
in tmap vatiable section placing below statements and getting respective AVERAGE
(String)globalMap.get("C1")
(String)globalMap.get("C2")
(String)globalMap.get("C3") ...etc
my question is... in future i will have more data in lookup file about 400 rows, so is there any way to load the all values in tSetGlobalVar compoent (directly read the values from the lookup file and keep them in tSetGlobalVar component to use in downstream compoents) ?
so far, rhall helping me on this case and here is link-
https://community.talend.com/t5/Design-and-Development/Join-input-and-lookup-file/td-p/67280
Thanks,
Kyle