"end xxx"

Use this forum to post questions about syntax problems or general programming issues. Questions on implementing a particular aspect of econometrics should go in "Econometrics Issues" below.
garchrookie
Posts: 11
Joined: Sat Jan 03, 2009 11:37 pm

"end xxx"

Unread post 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.
TomDoan
Posts: 7814
Joined: Wed Nov 01, 2006 4:36 pm

Re: "end xxx"

Unread post 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)
Post Reply