Can someone please tell me where my fault is?
Can you show us the rest of the code?
You can use IF statements in load scripts, just not in random locations.
it seems you are using "IF" condition out side the Load Statement; If so try like this..
IF (vBegin<>'MO') Then
What you are defining in your vCounter!
Retrieving data ...