I am certain this is patently obvious, but the solution is eluding me...
Given a dataset stored in CSV:
ID, col1, col2, col3
KEY-1, foo bar, baz
KEY-2, alice, bob, chuck
I would like to define a macro \getCol3{KEY-2} that returns chuck. I am getting tripped up by what appears to be internal key structures (and the fact that I just started using datatool).
\DTLgetvalue{\thevalue}{data}{\therow}{\thecol}
is what I assumed was in the right direction, but I cannot construct valid values for \therow and \thevalue.
\newcommand*{\thevalue}{}... i knew is was something simple. thanks! – equalspeterd Jan 12 '12 at 22:42