background jobs exit status and limit the number of jobs to run

i need to execute 5 jobs at a time in background and need to get the exit status of all the jobs i wrote small script below , i'm not sure this is right way to do it.any ideas please help.

$cat run_job.ksh

#!/usr/bin/ksh
####################################
typeset -u SCHEMA_NAME=$1
count=0
cat $home/tablist.list|
while read table
do
sas $table.sas &
count=`expr $count + 1`
echo $count
RC=$?
if (( $RC > 0 )); then
echo " executing the n't succes for $table :$RC "
exit 1
fi
cnt=$(jobs -l | wc -l )
if [[ $cnt -le 5 ]] ; then
continue
else
wait
#echo "In the wait mode"
fi
done
exit 0

background jobs exit status and limit the number of jobs to run