Page 1 of 1

Save error messages in a variable/text file

Posted: November 17th, 2016, 2:51 am
by mussabahire
How to save errmsg("message here") in a variable or a text file so that I can view it and analyse it later?

Re: Save error messages in a variable/text file

Posted: November 17th, 2016, 6:39 am
by htuser
Dear Mussabahire,
Theses messages are already natively saved in a cspro file with csdb extension (type masm listing) in the latest beta version. Since it's a .txt friendly format, you can open it in whatever text file reader (notepad, text viewer etc). However, in the latest beta theses files aren't created by default. You must activate them in the Cspro designer via: Options---Data sources----In addition to the data sources, create a.... listing files /operator statistics log files.
We would like that the developer team record theses data in the new csdb data file for further analysis.

Here's results on my laptop for a data entry sequence:
--------------------------------------------------------------
Application C:\Users\Admin\Desktop\Machine\Application\code_machine.pen
Type ENTRY
Input Data <<CSPro DB>> C:\Users\Admin\Desktop\Machine\Data\donnees.csdb

Date Nov 10, 2016
Start Time 22:54:53
End Time 22:55:31

CSPRO Process Summary

System messages:

Number Frequency Message text
------ --------- ------------
92102 2 New case ids '%s' duplicate an existing case! Cas
92103 9 New case ids '%s'. Old ids were '%s'.
100101 1 Error connecting to server: %s

CSPRO Executor Normal End
-------------------------------------------------------------------

Best regards,

Re: Save error messages in a variable/text file

Posted: November 18th, 2016, 10:21 am
by mussabahire
In my Options, I did not see--Data sources

Re: Save error messages in a variable/text file

Posted: November 19th, 2016, 7:34 am
by htuser
What version of Cspro do you use? If it's different than 7.0 beta, logs files are created by default.
Data sources is for 7.0 beta.

Regards,