I split this post from the previous one, since it's a new question from a different user. It can get confusing to ask new questions on the back of another, old, thread.
ocnPrint() will print out all the information about the sweeps along with whatever it is you're printing.
You can also do something like this:
inner=value(data outerName outerVal)
; will only be a single sweepValue if it's a paramset
printf("SWEEP: %s=%L %s=%L\n" outerName outerVal innerName innerVal)