Example Btrieve Trace Output

Below is an example of the output produced when the trace option is used:

                                             Line 
Input FA01 ifile1.tmp                          1 
Output Btrieve Error=+0000 COBOL Error=0/0     2 
Input FAF3 ifile1.tmp                          3 
Output Btrieve Error=+0000 COBOL Error=0/0     4 
Input FAF3 ifile1.tmp                          5 
Output Btrieve Error=+0000 COBOL Error=0/0     6 
Input FADC All Files                           7 
Output Btrieve Error=+0000 COBOL Error=0/0     8 
Input FA80 ifile1.tmp                          9 
Output Btrieve Error=+0000 COBOL Error=0/0    10 
Input FA02 ifile1.tmp                         11 
Output Btrieve Error=+0000 COBOL Error=0/0    12 
Input FAF5 ifile1.tmp                         13 
Output Btrieve Error=+0000 COBOL Error=0/0    14 
Input FAF5 ifile1.tmp                         15 
Output Btrieve Error=+0000 COBOL Error=0/0    16 
Input FAF5 ifile1.tmp                         17 
Output Btrieve Error=+0009 COBOL Error=1/0    18 
Input FA80 ifile1.tmp                         19 
Output Btrieve Error=+0000 COBOL Error=0/0    20 
Input FA01 test.dat                           21 
Output Btrieve Error=+0029 COBOL Error=9/078  22 
Input FA00 ifile1.tmp                         23 
Output Btrieve Error=+0000 COBOL Error=0/0    24 
Input FAF3 ifile1.tmp                         25 
Output Btrieve Error=+0000 COBOL Error=4/8    26 
Input FA80 ifile1.tmp                         27 
Output Btrieve Error=+0000 COBOL Error=0/0    28

Line 1 shows an example input line: the operation code and the name of the file on which the operation is being performed.

Line 2 shows an example output line: the Btrieve error status and the error being returned to the COBOL application.

Line 7 shows an example of an operation (in this case, COMMIT) being performed on all open files.

Line 22 shows the error status 29 being returned from the Btrieve run-time system and that this is returned to the COBOL application as a 9/078 status. For details of the Btrieve error status 29, see the relevant Btrieve documentation.

Line 26 shows an error that is generated within the Xfh2btr module. An attempt is being made to write to a file which is opened for INPUT.