OK, My bad

I edited your code and accused you of writing bad code....my bad...many appologies. Here is why I changed your code. If the file I need to change name/dir is ICVER12 .REQ than it changes to icver012.req. If the file is ICVER1 .REQ it needs to change to icver001.req. You see where the 2 digit number needs a preceeding 0 and the 1 digit number needs a preceeding 00. So I thought.....well let's not get into my bass-ackward thought process...here is what I thought would work..
#!/bin/ksh
typeset -L3 l; typeset -Z3 z; typeset -X3 x; typeset -Y3 y
ICV="/sw7/SHIP/SHIP/ICV"
ICVDATA="/sw7/SHIP/SHIP/ICVDATA"
while true; do
for i in 12 11 10; do
l=i; z=i
[ -e "$ICV/ICVER$l .REQ" ] &&
mv "$ICV/ICVER$l .REQ" $ICVDATA/icver0$z.req
[ -e $ICVDATA/icver0$z.ans ] &&
mv $ICVDATA/icver0$z.ans "$ICV/ICVER$l .ANS”
done
for i in 9 8 7 6 5 4 3 2 1; do
x=i; y=i
[ -e "$ICV/ICVER$x .REQ" ] &&
mv "$ICV/ICVER$x .REQ" $ICVDATA/icver00$y.req
[ -e $ICVDATA/icver00$y.ans ] &&
mv $ICVDATA/icver00$y.ans "$ICV/ICVER$x .ANS"
done
sleep 5
done
Am I even close? Thasnks again for all your help here!
Scott in Charlotte, NC