I ran script and getting below error message, any idea.
$ ksh -x export_db2_tables.ksh
+ cd /home/db2inst2/data_export/scripts/
+ cat table_names
table1
table2
table3
+ db2 connect to ITG
Database Connection Information
Database server = DB2/AIX64 9.5.2
SQL authorization ID = DB2INST1
Local database alias = ITG
+ xargs -I{} db2 EXPORT TO ~/data_export/{}.ixf OF IXF MESSAGES messages.txt "SELECT * FROM ITG.{}"
+ 0< table_names
+ sh
sh: SQL0104N: not found.
sh[2]: found: not found.
sh[4]: SQL0104N: not found.
sh[5]: found: not found.
sh[7]: SQL0104N: not found.
sh[8]: was: not found.