Is there a way to write the messages generated by importdb to a file?
importdb -a $pline APCINVOICE $FILEDIR$INVIMPORTU importdb -a $pline APCATTACH $FILEDIR$ATTACHIMPORTU