You'll need a two-stage process: one query whose output is a SELECT statement (with the "col1" in it), then execute that second query.
This can be achieved through either a .bat script with output redirect, or using SQL PL. Or just manually, of course, by passing the output of the first query to a second db2 run (by cut&paste into your command window).
Here is the query to generate the second SELECT statement:
Code:
SELECT 'select '|| Col2 ||' from Tab2 where Col2='''|| Col1 || ''';'
FROM Tab1 WHERE Col1='SomeData'
If Tab1 contains more than one row with 'SomeData' in its first column, this will generate all corresponding SELECT statements on Tab2.