title: nested loop with file1.csv and file2.csv in jmeter
body: <p>I am using Apache JMeter and I need to run function call in 2 nested loops driven by csv datafiles. There is similar Q&amp;A at <a href="https://stackoverflow.com/questions/12993754/how-to-implement-nested-loop-in-jmeter">How to implement nested loop in jmeter?</a> but it's not based on datafiles.</p>
  
  <p>I have 2 files:</p>
  
  <p><strong>long.csv</strong>:</p>
  
  <pre><code>1
  2
  3
  ...
  100.000
  </code></pre>
  
  <p>and <strong>short.csv</strong>:</p>
  
  <pre><code>a
  b
  c
  </code></pre>
  
  <p>I need to run nested loop test with data from those files</p>
  
  <pre><code>foreach x from long.csv
    foreach y from short.cvs
      call(x,y)
  </code></pre>
  
  <p>and I want the calls look like this:</p>
  
  <pre><code>call(1,a)
  call(1,b)
  call(1,c)
  call(2,a)
  call(2,b)
  call(2,c)
  call(3,a)
  call(3,b)
  call(3,c)
  ...
  call(100000,a)
  call(100000,b)
  call(100000,c)
  </code></pre>
  
  <p>The calls may be reordered, but I need unique call on every combination of inputs.</p>
  
  <p>Suggestions?</p>