(1) Check the value of "Acct_id" in procedure: dtstg.lkp_trd_acct_prc.
This is stored in your log $PathOfTempLstFile/TrdAcctSqlLog
exec dtstg.lkp_trd_acct_prc('$1','$2',$3,$4,$5,$6,:Acct_id,:curr_cfdc_parm_typ_cd,:curr_org_id);
print :Acct_id;
(2) Echo value of $AcctID after the below statement
AcctID=`cut -f1 $PathOfTempLstFile/TrdAcctSqlLog`
======
echo $AcctID
======
(3) Need to change the below.. you need to use $AcctID & based on
point(1) you need to change the condition
if [ AcctID = " "]--- iam getting the error in this line
Hope this helps