469,599 Members | 2,666 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,599 developers. It's quick & easy.

db2 exit codes?


I cant seem to find a list of possible exit codes from db2. I know I've
seen somewhere that 4 means error, and 0 is ok. Experimenting a bit
further I get 1 and 2 as warnings (but I dont know the difference). Are
there more, and what do they mean?

/Lennart

Example:

db2 +c -td@ -f file.sql
rc=$?
if [ $rc -eq 4 ]; then
db2 rollback
exit 4
fi
[...]
db2 commit

Dec 18 '06 #1
2 3979
In article <11*********************@t46g2000cwa.googlegroups. com>,
Er******************@gmail.com says...
>
I cant seem to find a list of possible exit codes from db2. I know I've
seen somewhere that 4 means error, and 0 is ok. Experimenting a bit
further I get 1 and 2 as warnings (but I dont know the difference). Are
there more, and what do they mean?
Check the docs at http://tinyurl.com/yyonb8
Dec 18 '06 #2

Gert van der Kooij wrote:
[...]
Check the docs at http://tinyurl.com/yyonb8
Thanx, exactly what I was looking for

/Lennart

Dec 18 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

12 posts views Thread by Ivan Voras | last post: by
1 post views Thread by Mark McEahern | last post: by
3 posts views Thread by asearle | last post: by
3 posts views Thread by =?ISO-8859-1?B?R+ln6Q==?= | last post: by
4 posts views Thread by guiromero | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.