You could use a simple loop in the shell script:
Code:
db2 "connect to <dbname>"
for f in *.sql; do
db2 -f $f > $f.output
done
Note that Marcus used some additional options for the db2 CLP - namely, -t and -v. You may want to read up on those options (and others) and determine which ones you need.