just type

db2 -f mybatch.txt