Hi,
I'm sure there are far more elegant ways of doing this,but..
I dug this example out from on old (ksh)script, not exactly what you
are after but may be of use/prompt some other ideas?
for i in 01 02 03 04 05 06 07 08 09 10 11 12 13 14
do
db2_all ";<<+$i< echo partition backup && echo DB2NODE=$i && time db2
-v backup db ${DB2_DBENV?} online LOAD "$NB_DIR"/bin/libbpdb2.sl with
2 buffers buffer 1024 parallelism 4 without prompting" |tee -a
$LOGFILE.$i
.....
i.e produce a logfile per partition and then process it for return
codes etc..
Paul.
db*****@yahoo.com (db2sysc) wrote in message news:<69**************************@posting.google. com>...
All:
When I execute a utility command using db2_all, Can I get seperate
return codes per node where the command got executed?
in other words, how to get the returncode when we execute db2_all
across nodes ?
Thanks