RATS 11.1
RATS 11.1

END( options )

 

The instruction END has several different purposes in RATS, depending upon the context:

END(SYSTEM) indicates the end of a system definition, begun with SYSTEM.

END terminates PROCEDUREs, FUNCTIONs, loops, and other compiled sections or ends a block of instructions (when combined with BEGIN).

END(RESET) clears the memory.


We primarily describe the third purpose here. See the discussions of SYSTEM, looping instructions, and procedures elsewhere for examples of the other uses.

 

If RATS encounters an END instruction that does not include either the SYSTEM or RESET options, and does not terminate a loop or other compiled section, it is simply ignored. This is a change from versions prior to 7.0, where a lone END command would terminate the program.


If you wish to clear the memory, use END(RESET), as described below.

Options

SYSTEM

When END is used with this option, it signals the end of a SYSTEM block used to define a VAR model or other system of equations.


 

RESET

This clears all variables and other information from RATS memory. When working in interactive mode, you can also do this using the File–Clear Memory menu operation.

 


Copyright © 2026 Thomas A. Doan