If you are thinking purely in terms of lists then the index associates them i.e. if you want the i'th element of both lists then:
value1 = lst1[i];
value2 = lst2[i];
If you want to think in terms of associative arrays then the 2 lists can be used to create an array
arr = AssociativeArray(lst1,lst2);
Then presumably you want to use the value from one list to reference the other e.g.
key = lst1[i];
value = arr[key];
Then to iterate, something like this:
keys = arr << get keys;
for (i=1,i<=nitems(keys),i++,
key = keys[i];
value = arr[key];
show(key,value);
);
For example:
dt = open("$SAMPLE_DATA/Big Class.jmp");
lst1 = dt:name << get values;
lst2 = dt:age << get values;
arr = AssociativeArray(lst1,lst2);
keys = arr << get keys;
for (i=1,i<=nitems(keys),i++,
key = keys[i];
value = arr[key];
show(key,value);
);
-Dave