Hello,<br><br>Does anyone have an example of how to use @length?<br><br>I have tried a few things, most recently<br>@length(inputfiles)<br>without success.<br><br>Cheers!<br>Heather<br><br><br>complete script below.<br><br>
type file;<br><br>file inputfiles1[] <ext;exec="mapper.py",filename=@arg("in1")>;<br>file inputfiles2[] <ext;exec="mapper.py",filename=@arg("in2")>;<br><br>app (file o) cat (file i1, file i2)<br>
{<br> cat @i1 @i2 stdout=@o;<br>}<br><br>foreach j in [0:@length(inputfiles1)] {<br> file c<concurrent_mapper;<br> prefix="map.",<br> suffix=".out">;<br>
c = cat(inputfiles1[j], inputfiles2[j]);<br>}<br><br>