Dagon,
I totally agreed with you.
Now, is there a way to do select and base on the select result to invoke a DB2 SQL script from command line?
Any scripting language such as REXX or DOS command that will allow such a thing?
What I want to achieve is this:
-- pseude code...
DB2 CONNECT TO $mydb USER $user1 USING $pw1
DB2 SELECT col1 INTO $var1 FROM tab1 WHERE col2 = $user1
if [[-z $var1]]; then
myscript1.sh
fi
Thanks!
Regards, Nancy