How to get the last SYSERR user error complete

*ERROR-NR has the last user error but I need to include :1:messages.

Any idea ?

Have a look at USR2006N in SYSEXT

Hi,

have a look at Error Logger.
I used it, if I caught an error. Then I called the subroutine and got a list of all Natural-Errors and where they happenend.

I last one was most important one :slight_smile:

To use it, just change

  L4N-LINENR  := *LINE;L4N-LOGLEVEL := C-LOGLEVEL-FATAL
  CALLNAT 'L4NLOG' L4NPARAM

to

  WRITE 'ERROR: ' L4N-LOGTEXT

twice.

Best regards

Markus Wessjohann

This topic was automatically closed after 1083 days. New replies are no longer allowed.