Quote:
|
Originally Posted by vijay_b
db2 load from staff.del of del modified by dumpfile = /home/db2inst1/ "replace into task"
the dumpfiles should be many not one.
|
From the filename, I'm assuming you are on a unix system.
(On MS-Windows, just install bash from cygwin.)
Place your "db2 load" invocation in a shell script as follows:
Code:
#! /bin/sh
db2 load from staff.del of del modified by dumpfile = /home/db2inst1/dump$$.log
The variable "$$" is the process id of the executing script, which should be different on every invocation.
An alternative, safer way which also gives a nicer file name sequence, is:
Code:
#! /bin/sh
i=1
while test -f /home/db2inst1/dump$i.log
do i=`expr $i + 1`
done
db2 load from staff.del of del modified by dumpfile = /home/db2inst1/dump$i.log
Note that this will start reusing the file dump1.log if you manually delete it.