How can I resolve a PWS - Error Reading File: TNTCCL.DB Return Code=2?

Document ID : KB000016702
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

Telon PWS error reading file.

Question:

How can I resolve a PWS - Error Reading File: TNTCCL.DB Return Code=2?

Environment:
Using Telon PWS 5.1
Answer:

Message “Error reading file: TNTCCL.DB Return Code=2” means that the file is damaged. It is an I/O error from Btrieve software which is used to access database files on the Windows platform.

TNTCCL file contains custom code and the reason why export is working for specific program might be because it doesn’t have any custom code in it. Some other program will have problem when exporting if it contains custom code which is read from TNTCCL.

 

The best way to repair this file is using a backup. If there is no backup, then maybe BUTIL -RECOVER can do something.

Other way to do it is:

BUTIL -CLONE <new_file> <old_file> - creates an empty copy of the old file

BUTIL -COPY <old_file> <new_file> - copy the content to the new file

 

 

You can also try if the transport utility works with clean database or with just clean TNTCCL file, to be sure that the corruption is the problem. 

Additional Information:

The error is explained here... and what to do to prevent/repair it

http://www.addsuminc.com/ad051198.htm 

Here is some explanation thru CLONE/SAVE/LOAD

https://communities.actian.com/s/article/Using-Butil-to-Fix-Corrupted-Files3903  

Here is documentation regarding Telon PWS transport facility:

https://support.ca.com/cadocs/0/CA%20Telon%20%20Application%20Generator%205%201-ENU/Bookshelf_Files/HTML/PWS%20Option%20Administration%20Guide/index.htm?toc.htm?893266.html

 

And here is explanation of the files there and how to initialize them. 

 

https://support.ca.com/cadocs/0/CA%20Telon%20%20Application%20Generator%205%201-ENU/Bookshelf_Files/HTML/PWS%20Option%20Administration%20Guide/index.htm?toc.htm?893080.html