Microsoft KB Archive/931488

= FIX: After you import multiple COBOL source files in Host Integration Server 2004, one or more parameter types are overwritten =

Article ID: 931488

Article Last Modified on 12/4/2007

-

APPLIES TO


 * Microsoft Host Integration Server 2004 Enterprise Edition
 * Microsoft Host Integration Server 2004 Standard Edition

-



SYMPTOMS
You use the Import COBOL Wizard to import multiple COBOL source files to define multiple Transaction Integrator (TI) methods in Microsoft Host Integration Server 2004. After you do this, one or more parameter types that are imported in the COBOL source files are overwritten. This problem can occur for parameter types that are imported from any COBOL source file after the first imported COBOL source file. After this problem occurs, the TI runtime may return an error message that resembles the following when the TI method is called:

(1513) Character string parameter  in method  exceeds the maximum size; truncation is not allowed. The Transaction Integrator runtime has determined that the length of the converted input character string exceeds the maximum length specified in the Transaction Integrator component library and that the specified conversion mapping does not permit truncating the string. Check the application program. If no errors are discovered consider allowing truncation or increasing the allowable length of the converted character string.

The actual error message varies depending on which parameter type was overwritten.



CAUSE
This problem occurs because the TI Designer does not correctly update the index that links the parameter name together with the parameter type. This behavior occurs when TI Designer imports source COBOL files and when it creates TI methods.



RESOLUTION
A supported hotfix is now available from Microsoft. However, this hotfix is intended to correct only the problem that is described in this article. Apply this hotfix only to systems that are experiencing this specific problem. This hotfix might receive additional testing. Therefore, if you are not severely affected by this problem, we recommend that you wait for the next service pack that contains this hotfix.

To resolve this problem, submit a request to Microsoft Online Customer Services to obtain the hotfix. To submit an online request to obtain the hotfix, visit the following Microsoft Web site:

http://go.microsoft.com/?linkid=6294451

Note If additional issues occur or any troubleshooting is required, you might have to create a separate service request. The usual support costs will apply to additional support questions and issues that do not qualify for this specific hotfix. To create a separate service request, visit the following Microsoft Web site:

http://support.microsoft.com/contactus/?ws=support

File information
The English version of this hotfix has the file attributes (or later file attributes) that are listed in the following table. The dates and times for these files are listed in Coordinated Universal Time (UTC). When you view the file information, it is converted to local time. To find the difference between UTC and local time, use the Time Zone tab in the Date and Time item in Control Panel.



STATUS
Microsoft has confirmed that this is a problem in the Microsoft products that are listed in the &quot;Applies to&quot; section.



Steps to reproduce the problem
 Open Microsoft visual studio .NET 2003. On the File menu, click New, and then click Project. Click Host Integration Projects, click Transaction Integrator Project, type TIProject1 in the Name box, and then click OK. In Solution Explorer, right-click TIProject1, click Add, and then click Add COM Client Library. In the Name box, type Library1, and then click Add.</li> Complete the COM Client Library Wizard.</li> Right-click Library1.TLB, and then click Open.</li> Right-click Library1, click Import, and then click Host Definition to start the Import COBOL Wizard.</li> Click Next to move to the Import COBOL Source File page.</li> Locate the first COBOL source file that you want to import, and then click Open.</li> Click Next to display the Item Options page, and then specify the type of item to create.</li> Click Method, and then enter a name and a Transaction ID for the method.</li> Click Next to display the Input Area page, and then set the input area for the host transaction.</li> Click Next to move to the Output Area page, and then specify the output area for the host transaction.</li> Click Next to display the Return Value page, and then select the return value for the host transaction.</li> Click Next to display the Recordsets and User-Defined Types page, and then define a recordset type or a user-defined type to use.

This sample method includes the following parameters: <ul> One string</li> One integer</li> One recordset</li></ul>

The parameters are defined as follows. </li> Import a second COBOL source file, and then repeat steps 8 through 16 to define the method. The second sample method includes the following parameters: <ul> <li>One string</li> <li>Three integers</li> <li>Three recordsets</li></ul>

The parameters are defined as follows.

The types for the three recordset parameters in this second method are mismatched. The RECORDSET_2 parameter should have a RECORDSET_2 type instead of a RECORDSET_1 type. The RECORDSET_3 and RECORDSET_4 parameters also have incorrect types.</li></ol>

For more information about software update terminology, click the following article number to view the article in the Microsoft Knowledge Base:

824684 Description of the standard terminology that is used to describe Microsoft software updates

Keywords: kberrmsg kbfix kbqfe kbpubtypekc kbhotfixserver KB931488

-

[mailto:TECHNET@MICROSOFT.COM Send feedback to Microsoft]

© Microsoft Corporation. All rights reserved.