>do while somecondition > if thiscondition > process this > else > process that > endif > command > command > select data > scan > if anothercondition > process thisstuff > endif > endscan > enddo >another condition > >