While,for ,if loop...help me

Hi All

Need you help on a script logic :
I have a file a.out which contain

A345
B456
C876

This file is received after running a script.
Now if the script doesnt generate this file then it echo "no issue"

while [ -f a.out ]
do 
   ......................
done
echo "no issue"

. The above is the structure to check a.out
No coming to inside the while loop:

while [ -f a.out]
do
   sleep 120
   touch b.out//used this becoz in first if loop b.out file wont be available
   if [ to check data in both the files a.out and b.out are same by vloopkup and copy tht data to c.out file ]
       // here i have mentioned vlookup because data in b.out and a.out can be randon so here we can use sort 
       here c.out contain the output which is same in a.out and b.out
       for i in `cat c.out`
       do
           search the string present in the file (for example A345 ) in another location and pick the name from the file as w_A345.
           there are n number of file in the directory it will search for w_A345...log file and 
           pick w_A345 string from the file and assign to a variable i.e var=w_A345
           remove that data A345 from a.out and b.out
   else
      run a script to get the b.out file
   fi
now here i want to add within a time period say 11:30 pm if we dont get the data in b.out which are present in a.out then 
it should break teh loop and send a final notifictaion
done

please next time, use plain english and check your spelling, its difficult to guess especially for non english mothertongue folk...
You are missing a done...but not sure its what you want:
a main while loop containing a if which hold a for loop?

Please let me know what i need to correct.