Declares a variable with local scope. Local variables are stored on the stack. The space for a local variable is freed when program execution leaves its subroutine or scope.
Note If a variable name is not declared in an R-CODE program (using either GLOBAL or LOCAL) the R-CODE system will automatically create that variable with global scope.
The LOCAL statement syntax has the following parts: