"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.

"end xxx"

Postby garchrookie » Sat Aug 21, 2010 4:33 am

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.
garchrookie
 
Posts: 11
Joined: Sun Jan 04, 2009 12:37 am

Re: "end xxx"

Postby TomDoan » Sat Aug 21, 2010 7:31 am

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)
TomDoan
 
Posts: 2720
Joined: Wed Nov 01, 2006 5:36 pm


Return to Help With Programming

Who is online

Users browsing this forum: No registered users and 0 guests

cron