Message error in LG file

gasomma

Member
I have to monitor errors that system write in LG file.
It's possible to catch a message error (list below for example) and save it in a variable?
Thx
JCA


15:52:12 SRV 1: Logout usernum 20, userid obs, on sdclu001. (739)
15:52:13 SRV 1: Login usernum 20, userid obs, on sdclu001. (742)
15:53:16 SRV 2: Login usernum 19, userid obs, on sdclu001. (742)
15:53:18 SRV 1: Usernum 20 terminated abnormally. (794)
15:53:18 SRV 1: Logout usernum 20, userid obs, on sdclu001. (739)
15:53:19 SRV 2: Logout usernum 19, userid obs, on sdclu001. (739)
15:53:20 SRV 1: Login usernum 20, userid obs, on sdclu001. (742)
15:54:18 SRV 2: Login usernum 19, userid obs, on sdclu001. (742)
15:54:20 SRV 1: Usernum 20 terminated abnormally. (794)
15:54:20 SRV 1: Logout usernum 20, userid obs, on sdclu001. (739)
 
Maybe.

Inside a session there e are many ways to handle that session's errors. Your decision rests largely with the application architecture. If that is the sort of thing that you're looking for you should jump over to the "development" forum.

On a global basis there is no way to directly get all errors from all sessions directly into a variable except by scanning and parsing the .lg file. There are some tools to help you do that if that is what you want. PSC has one available on PSDN.
 
Hello,

infact, I need know some errors from all sessions. Could you pls suggest me some tools for that?
Thx.
JCA
 
Back
Top