Microsoft Knowledge Base Email Alertz

(183557) - String data does not display properly when the string field, or column, is preceded by an integer in the OLE DB Provider Host Column Description (HCD) file that describes the record layout of the mainframe file. This can occur, for example, when you...

Search KbAlertz

Advanced Search

Receive Microsoft Knowledge Base articles by E-Mail?

Every night we scan the Microsoft Knowledge Base. If technologies you're interested in are updated, we'll send you an e-mail. You only get one e-mail a day, and only when new articles are added.

Click here to create a
FREE account
Already have an account?
[Click here to Login]











Microsoft Knowledge Base Article

This article contents is Microsoft Copyrighted material.
©2005-©2007 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks

Article ID: 183557 - Last Review: March 10, 2004 - Revision: 4.1

MVS Invalid Conversion of String Data

This article was previously published under Q183557

SYMPTOMS

String data does not display properly when the string field, or column, is preceded by an integer in the OLE DB Provider Host Column Description (HCD) file that describes the record layout of the mainframe file.

This can occur, for example, when you create a Host Column Description (HCD) file for an MVS QSAM file, an MVS PDS file, or an MVS VSAM KSDS file using the Microsoft Management Console (MMC) snap-in, where the first field is a short integer (halfword integer) and the second field is a string. In the column properties of the integer, the Host type is set to "Short" and the Local Type is left to the default of "DBTYPE_STR."

Using a Visual Basic consumer and ActiveX Data Objects to display the recordset returned from the mainframe reveals that the string data does not display. Regardless of this, the integer displays properly. The Visual Basic program can not display the data returned from the mainframe because the OLE DB Provider does not convert it properly.

Similar results occur when a long integer (fullword integer) replaces the short integer of the first field.

WORKAROUND

Change the Local Type for the integer field to "DBTYPE_I2" or "DBTYPE_I4" depending on whether the integer is short or long, respectively.

STATUS

Microsoft has confirmed this to be a problem in Microsoft OLE DB Provider for AS/400 and VSAM version 1.00 included with SNA Server version 4.0.

This problem was corrected in the latest SNA Server version 4.0 U.S. Service Pack. For information on obtaining this Service Pack, query on the following word in the Microsoft Knowledge Base (without the spaces):
S E R V P A C K

APPLIES TO
  • Microsoft OLE DB Provider for AS/400 and VSAM 1.0, when used with:
    • Microsoft SNA Server 4.0
Keywords: 
kbbug kbfix KB183557
       

Community Feedback System

Very often, it takes hours to solve a problem. Very often, you've looked high and low, and have tried a lot of solutions. When you finally found it, chances are, it was because someone else helped you. Here's your chance to give back. Use our community feedback tool to let others know what worked for you and what didn't.

Please also understand that the community feedback system is not warranted to be correct, it's simply a system that we've built to let people try and help each other. If something in a feedback response doesn't make sense to you, or you're not comfortable making changes that the feedback talks about (like registry edits), please consult a professional.

Thank you for using kbAlertz.com Feedback System.

-- Scott Cate