Error List

Posted by Rodrigo Dias on 16-Aug-2016 07:54

Hi Guys!

I'm working in a project to use a tool that read any file types and generate alerts based in their content but I need a list of errors from Progress.

Is there this content outside from Progress Client?

Posted by George Potemkin on 16-Aug-2016 08:09

> Is there this content outside from Progress Client?

ftp.progress-tech.ru/.../promsgs.dump.11.6.xlsx

All Replies

Posted by Paul Koufalis on 16-Aug-2016 08:03

ProTop has this functionality and much more already built in.

promsgs file in binary format has all the messages.

$DLC/prohelp/msgdata contains the error messages in text format.

Posted by George Potemkin on 16-Aug-2016 08:09

> Is there this content outside from Progress Client?

ftp.progress-tech.ru/.../promsgs.dump.11.6.xlsx

Posted by gus bjorklund on 16-Aug-2016 08:30

rodrigo,

the promsgs file has all the error message formats.

in that file, records are 81 bytes long, in order by message number with no gaps.

(but a few messages use multiple records)

Posted by George Potemkin on 16-Aug-2016 08:45

> $DLC/prohelp/msgdata contains the error messages in text format.

prohelp/_msgs.p can read these files.

Or use:

FUNCTION MsgText RETURNS CHARACTER(ipMsgNum AS INTEGER).
  DEFINE VARIABLE vMsgNum  AS INTEGER   NO-UNDO.
  DEFINE VARIABLE vMsgText AS CHARACTER NO-UNDO.

  ASSIGN vMsgText = SEARCH("prohelp/msgdata/msg1")
         vMsgText = SUBSTRING(vMsgText, 1, LENGTH(vMsgText) - 1)
         vMsgNum  = TRUNCATE((ipMsgNum - 1) / 50, 0) + 1
         vMsgText = vMsgText + STRING(vMsgNum)
         FILE-INFO:FILE-NAME = vMsgText
  . /* ASSIGN */
  
/* If MsgNum is too high for current Progress version: */
  IF FILE-INFO:FULL-PATHNAME EQ ? THEN
  RETURN "(" + STRING(ipMsgNum) + ")".

  INPUT FROM VALUE(FILE-INFO:FULL-PATHNAME).
  REPEAT:
    ASSIGN vMsgNum  = ?
           vMsgText = ?.
    IMPORT vMsgNum vMsgText ^.
    IF vMsgNum EQ ipMsgNum THEN
    LEAVE.
  END.
  INPUT CLOSE.
  RETURN vMsgText.
END FUNCTION. /* MsgText */

And of course I have a program that reads the promsgs file.

This thread is closed