%PROC (Return Name of Current Procedure)
%PROC()
%PROC returns the external name of the current procedure.
%PROC can only be specified in calculation statements.
- For a cycle-main procedure, the external name of the procedure is the name of the module when it was compiled.
- For a linear-main procedure, the external name of the procedure is the uppercase form of name of the main procedure. See 1 in the example below.
- For a subprocedure where EXTPROC was not specified, the external name of the procedure is the uppercase form of the name of the procedure. See 2 in the example below.
- For a subprocedure where EXTPROC was specified, the external name of the procedure is the value specified by EXTPROC. See 3 in the example below.
- For a Java procedure, the external name of the procedure is in the form "Java_classname_methodname". See 4 in the example below.