sql - How to log failed script output to a different file while running db2cmd -


we running scripts using db2cmd -vtf scriptfile -l logfile...

all successfull , failed info going same logfile.

we executing file contains 500 script files, , want failed scripts send output different log file.

i think can use following option:

db2cmd -vtf scriptfile -l logfile -z errorfile 

https://www-01.ibm.com/support/knowledgecenter/ssepgg_10.1.0/com.ibm.db2.luw.admin.cmd.doc/doc/r0010410.html?cp=ssepgg_10.1.0%2f3-5-2-0-2


Comments