I have this GL query..while running it on toad,,am getting an error at @variable which is at second page.

am not eactly sure wht @variable does it?

can guys help me out?

Thanks