JCL Help:MODULE
JCL Help: __MODULE__ Function
Search in JCL Help
Search in all projects
Summary
Returns the name of the unit in which a routine resides.
Pascal
function __MODULE__(const Level: Integer = 0): string; deprecated;
Parameters
Parameters | Description |
const Level: Integer = 0 | Caller level for which you want to know the module name in which it resides. 0 is the currently executing routine, 1 is the caller, 2 is the caller of the caller, etc. |
Return Value
Unit name in which the routine specified by Level exists.
Description
__MODULE__ returns the name of the unit in which the routine specified by Level exists. Level 0 denotes the currently executing routine, 1 denotes the caller of the routine, 2 the caller of the caller, etc.
See Also
__FILE__ __PROC__ __LINE__ __MAP__ __FILE_OF_ADDR__ __MODULE_OF_ADDR__ __PROC_OF_ADDR__ __LINE_OF_ADDR__ __MAP_OF_ADDR__
About
Unit
Donator
Petr Vones
Notes
Usage of this function requires building the module with a detailed map file. Use the Linker tab in the Project Options dialog to enable creation of a map file. This function is obsolete. Use ModuleByLevel instead.
Contribute to this help topic
This documentation wiki is based on the collaborative effort of Project JEDI users. Your edits are welcome in order to improve documentation quality: edit this page