Save error messages in a variable/text file

Discussions about CSEntry
Post Reply
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Save error messages in a variable/text file

Post 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?
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Save error messages in a variable/text file

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
mussabahire
Posts: 43
Joined: September 5th, 2016, 4:55 am

Re: Save error messages in a variable/text file

Post by mussabahire »

In my Options, I did not see--Data sources
htuser
Posts: 632
Joined: December 19th, 2011, 6:26 pm
Location: Silver Spring Area, MD, USA

Re: Save error messages in a variable/text file

Post 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,
G.VOLNY, a CSProuser from Haiti, since 2004
Post Reply