if i have understood ur problem properly,
then it can be easily acheived using batch files
Run_Patch.bat.....................................
@echo on
db2cmd .\SemiAuto_Patch.bat
SemiAuto_Patch.bat..............................
echo connection to DB RAHUL
db2 connect to <DB_NAME> user <>
echo dropping procedures, functions, triggers etc
db2 -tvf <Folder_Name>1_Drops.txt > <Folder_Name>1_Drops.log
echo running main SQL
db2 -tvf <Folder_Name>2_Main.txt > <Folder_Name>2_Main.log
echo creating procedures, functions, triggers
call .\3_db2_e1.bat > .\3_db2_e1.log
echo giving grants
db2 -tvf <Folder_Name>4_Grant.txt > <Folder_Name>4_Grant.log
echo doing verifications
pause
exit
--Rahul Singh