Do not input private or sensitive data. View Qlik Privacy & Cookie Policy.
Skip to main content

Announcements
Qlik Connect 2026! Turn data into bold moves, April 13 -15: Learn More!
cancel
Showing results for 
Search instead for 
Did you mean: 
Anonymous
Not applicable

Two tmap using same i/p

I am using two i/p file(txt) to two different tmaps in same job.

 

In first case file a.txt is being main file for tmap 1 and file b.txt as lookup file.

In the same job above i/p s are exchanging and file a.txt is being used as lookup and b.txt is being used as main file to tmap 2.

 

I am trying to use replicate to replicate the sources records,job is running but not reading /writing.

 

Attached is the snapshot of job.

 

Please advise what is the issue/or any other suggestion/component i need to use.

 

 

 

 

 

 

 

 

 

Labels (2)
2 Replies
Anonymous
Not applicable
Author

You should try using the tHashInput and tHashOutput components for this. Read from each of your files into tHashOutput components (1 for each). These store the data in memory. Then using a tHashInput component for each of your 4 inputs to your tMap components. The tHashInput components can be used more than once. This way you read once and have more control over how the data is used.

vapukov
Master II
Master II

in addition to @rhall 

if files too big to store them in memory - read them twice (do not use tReplicate)

run first subjob, than run second