Page 1 of 1

"end xxx"

Posted: Sat Aug 21, 2010 4:33 am
by garchrookie
Question 1

In the past, I started each RATS program with “end xxx”

But now, why the system shows the following error message?

## SX21. A END or } Here is Unneeded or Unexpected

Thanks a lot.

Re: "end xxx"

Posted: Sat Aug 21, 2010 7:31 am
by TomDoan
garchrookie wrote:Question 1

In the past, I started each RATS program with “end xxx”

But now, why the system shows the following error message?

## SX21. A END or } Here is Unneeded or Unexpected

Thanks a lot.
END is "overloaded" in RATS, and the END xxx which was once used to separate programs or to make sure memory got cleared is also used for ending loops and procedures. As a result, an extra "END" in coding a procedure could cause the program to quit. To get the same behavior now, use

END(RESET)