New

Examples of New

The NEW command "stacks" copies of local variables and reinitializes the variables. An explicit or implicit QUIT from a DO, XECUTE or extrinsic function "unstacks" the NEWed variables, that is, restores the variable to the stacked value. A NEW lasts only for the current scope of execution.

The format of the NEW command is:

        N[EW][:tvexpr] [[(]lvn[,...][)][,...]]
      

The NEW command provides a means of confining the scope of local variables. NEW operates only on unsubscripted local names and acts on the entire named array.