Thread: Script Library
View Single Post
  #2 (permalink)  
Old 03-01-07, 07:18
grofaty grofaty is offline
Registered User
 
Join Date: Jan 2003
Posts: 1,570
Execute SQLs from files only with one batch file - DB2 on Windows

On general there must be two batch files (or one batch and one SQL file) to execute db2 commands on Windows from batch operation. I have written a script that only one batch is needed. This is specially useful if scheduling is required. So only one batch file instead of two.

Code and detailed description is available in thread dos scripits for db2. Please feel free to post any commands in mentioned thread.

Code tested on: DB2 v8.2 fp9 on Windows XP SP2
Hope this code helps,
Grofaty
Reply With Quote