Here are two ways that you can check the return code of a db2 command from the dos prompt or in a script:
(1)
db2 drop table kuku
if not %errorlevel% == 0 .....
(2) This works on my Windows2000 platform, but I don't know about other Windows platforms. This was run from the command prompt (all...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.