If this is your first visit, be sure to check out the FAQ by clicking the link above.
You may have to register before you can post: click the register link above to proceed.
To start viewing messages, select the forum that you want to visit from the selection below.
db2 list db directory|grep -p Indirect|grep -E "alias"|cut -c41-49>dbs
while read dbfile
do
if [ "${dbfile}" = 'DBPTLFEU' -o "${dbfile}" = 'DBPTLLMU' ]; then
db2 deactivate db ${dbfile};
else
db2 connect to ${dbfile};
echo ${dbfile}
db2 -tvf ptldeadevnt.sql
db2 connect reset>/dev/null
fi
done < dbs