How do I flag this condition? I am running several imports via a table driven Unix (ksh) script. When I get any rows skipped or rejected, I want to be notifiied. I have a check in my script for checking rc != 0, but rc is 0 so no email is generated. Thanks.
The commands I am using is as follows:
db2 "import from ${datadir}/${tabname}.ifx of ixf COMMITCOUNT ${commitCountRule} messages ${msgdir}/${tabname}.msg INSERT_UPDATE into ${schname}.${tabname}"
rc=$?
Importing with no special format: default. tabname: LKP_FORM_DOC_MAP
Number of rows read = 3362
Number of rows skipped = 0
Number of rows inserted = 0
Number of rows updated = 0
Number of rows rejected = 3362
Number of rows committed = 3362
Import rc = 0
DB20000I The SQL command completed successfully.