In this section are some of the possible problems you may encounter while modifying your applications to work with a relational database.
Where is the Micro Focus VSAM file ACCTFIL?
This file should have been created when you ran the CICS tutorial. (For information on this tutorial, see the section Preparation.
Why did I get file error 39 on OPEN INPUT ACCT-IN?
The actual key definition of ACCTFIL does not directly match up to existing fields in the copy book acctrec.cpy. You need to modify the record description. See the discussion of this in the section Code Sample.
Why did I get file error 9k or 9,107 on OPEN OUTPUT ACCT-OUT?
A Database Connectors-specific error has occurred. You need to rerun your application using an emitter to determine the exact nature of the error. See the section Turning on Tracing for details on how to turn on tracing and configure an emitter for use with Database Connectors.
Once you have a trace file, search for the error 9k to determine the source of the issue. There is a block of information providing details on the error, for example:
MF.RTS 51 1 : " f_errno: 19" MF.RTS 51 1 : " f_int_errno: 3" MF.RTS 51 1 : " f_int2_errno: 2" MF.RTS 51 1 : " f_errmsg: Unable to open XFD file for 'DBACCTFIL', error = 2" MF.RTS 51 1 : " 9k or 9,107"
This error indicates the run time system was unable to locate the data dictionary (XFD) for the file. To resolve this, ensure that you compiled with the $SET CREATEXFD directive (see the section Creating XFD Files. If your XFD files are not in the current directory, you need to set the XFD-DIRECTORY variable in your Database Connectors configuration file to the directory in which your XFD files are stored (see the section Setting Up the Configuration File.
MF.RTS 51 1 : " f_errno: 19" MF.RTS 51 1 : " f_int_errno: 18456" MF.RTS 51 1 : " f_int2_errno: 0" MF.RTS 51 1 : " f_errmsg: Login failed for user 'testuser'." MF.RTS 51 1 : " 9k or 9,107"
This error indicates that Database Connectors was unable to log into the Microsoft SQL Server database. To resolve this, ensure that you have provided the correct configuration information for access to your MSSQL database (see the section Setting Up the Configuration File. The variables in question are:
Why is the file DBACCTFIL is being created as a Micro Focus VSAM file, and not an MSSQL table?
Verify the following:
DBACCTFIL-HOST mssql
For a more complete discussion of troubleshooting your application using Micro Focus Database Connectors, refer to the chapter Performance and Troubleshooting of your Database Connectors User’s Guide.
Why do I receive an error 9k when I try to create a table in Microsoft SQL Server?
You might be using the wrong server name in the A-MSSQL-DEFAULT-CONNECTION variable. One way you can verify the server name is by following the steps below. This method is useful if you don't have the client tools for SQL Server installed.
This provides you with the name of the server you need to use in the A-MSSQL-DEFAULT-CONNECTION variable.