Help with ksh syntax error Unexpected Fi

Issue resolved, thanks

check these lines:

 
>> $ABATCH_LOG/$JOB_LOG 2>&1
echo "$SUBMIT_CONCSUB"  >> $ABATCH_LOG/$JOB_LOG 2>&1

repeated line? missing command?

No, We have other scripts with the same line that work fine. I have tried compring it to other scripts and cant find anything wrong.

turn -x option in script to see execution echo and help debug. I suspect that one of the file names used in the variables for the if statments might have a space in it.

I ran it but it's more information than I want to post on the internet. What am I looking for in this log?

echo the variables used in the ifs statements right before the test, maybe some of them have spaces or are empty.

I found it, turns out there was an extra

fi

in there. Thanks for the help.