use notepad, save with extension sql,this should work:
example.sql:
SET CURRENT SCHEMA MYSCHEMA
CREATE TABLE "MYSCHEMA"."MYTABLE1" (
"MYVARCHAR1" VARCHAR(255) NOT NULL,
"MYINTEGER1" INTEGER NOT NULL,
"MYCHAR1" CHAR(20) NOT NULL
);
CREATE TABLE "MYSCHEMA"."MYTABLE2" (
"MYVARCHAR2" VARCHAR(255) NOT NULL,
"MYINTEGER2" INTEGER NOT NULL,
"MYCHAR2" CHAR(20) NOT NULL
);
i suggest u put some blank lines at the end of the file.
then using Command line processor, do the following:
db2 => quit
DB20000I The QUIT command completed successfully.
C:\PROGRA~1\SQLLIB\BIN>
C:\PROGRA~1\SQLLIB\BIN>db2 connect to mydb
....
C:\PROGRA~1\SQLLIB\BIN>db2 -tvf example.sql
note that after quit, you should change your directory to where you have saved the file with "cd" command