Returns the current procedure's EXEC nesting level within method level.
When an NCL process is invoked the first procedure executed is called the base procedure. If the base procedure issues an EXEC command to invoke another procedure, the second procedure is a nested procedure. This second procedure can EXEC other procedures. Any procedure can inspect the &ZNCLNEST system variable to determine its nesting level, which is the number of procedures deep from the base procedure. The value of &ZNCLNEST is a number in the range 1 to 250 (1 represents the nesting level of the base procedure).
Example: &ZNCLNEST
&IF &ZNCLNEST EQ 250 &SYSMSG = &STR MAXIMUM PROCEDURE DEPTH
A maximum of 250 nesting levels is allowed in any one process.
| Copyright © 2009 CA. All rights reserved. |
|