executing a sql file in the local DB2-Database on Windows

First you have to start the DB2-Commandshell by executing db2cmd.exe from the BIN-Directory of the DB2-Installation.

In the DB2 Command shell connect first to the database: e.g

db2 connect to <database> USER <username>

db2 -tvmf <sql-File>