Purpose:Return the context of the current batch call

 

Format:CALLER [n]

 

Usage:

 

Returns the context of the current batch call, including the line number, (optional) subroutine label, and batch file or library name.

 

If n is not specified, CALLER displays the line number and batch file or library name for the current line. If n is specified, CALLER displays the line number, subroutine label (or "main" if not in a subroutine), and batch or library name. The n value for the current line is 0, the previous call in the program stack is 1, etc.