EGL Development User Group

EGL Development User Group

EGL Development User Group

The EGL Development User Group is dedicated to sharing news, knowledge, and insights regarding the EGL language and Business Developer product. Consisting of IBMers, HCL, and users, this community collaborates to advance the EGL ecosystem.

 View Only
Expand all | Collapse all

Current libary and function name

  • 1.  Current libary and function name

    Posted Tue December 22, 2015 11:34 AM

    This might be a simple question, but is there any way to determine the name of the current library and current function.

     

    I want to log to a database instead of the Websphere log, and this would make the code a lot more portable...

     

    Kind regards, 

     

    Bram

    Bram_Callewaert


  • 2.  Re: Current libary and function name

    Posted Tue December 22, 2015 03:39 PM

    Bram,

     

    I believe as of V9.0 (maybe 9.1), there is a

     

    sysvar.currentFunctionName   - current function

    and

    sysvar.currentContainerName  - current program, library, etc with package name

    sysvar.currentAliasName - current program's alias name (I assume also works for library, etc).

     

    For reference, there is also:

    sysvar.currentLineNumber

    and

    syslib.getCurrentCallStack

    markevans


  • 3.  Re: Current libary and function name

    Posted Tue December 22, 2015 04:00 PM

    Thanks Mark,

     

    That's exactly what I was looking for!

    Bram_Callewaert