Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 770379
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 14, 20262026-05-14T18:29:28+00:00 2026-05-14T18:29:28+00:00

We are connecting to a multi-member AS400 iSeries table via HIT OLEDB and HIT

  • 0

We are connecting to a multi-member AS400 iSeries table via HIT OLEDB and HIT ODBC.

You connect to this table via an alias to access a specific multi-member. We create the alias on the AS400 this way:

CREATE ALIAS aliasname FOR table(membername)

We can then query each member of the table this way:

SELECT * FROM aliasname

We are testing this in Delphi6 first, but will move it to D2010 later

We are using HIT OLEDB for the AS400.

We are pulling down records from a table and the field is being seen as a tBytesField. I have also tried ODBC driver and it sees as tBytesField as well.

Directly on the AS400 I can query the data and see readable text. I can use the iSeries Navigation tool and see readable text as well.

However when I bring it down to the Delphi client via the HIT OLEDB or HIT ODBC and try to view via asString then I just see unreadable text.. something like this:

ñðð@ðõñððððñ÷@õôððõñòøóóöøñðÂÁÕÒ@ÖÆ@ÁÔÅÙÉÃÁ@@@@@@@@ÂÈÙÉâãæÁðòñè@ÔK@k@ÉÕÃK@@@@@@@@@ç

I jumbled up the text above, but that is the character types that show up.

When I did a test in D2010 the text looks like japanse or chinese characters, but if I display as AnsiString then it looks like what it does in Delphi 6.

I am thinking this may have something to do with code pages or character sets, but I have no experience in this are so it is new to me if it is related. When I look at the Coded Character Set on the AS400 it is set to 65535.

What do I need to do to make this text readable?

We do have a third party component (Delphi400) that makes things behave in a more native AS400 manner. When I use its AS400 connection and AS400 query components it shows the field as a tStringField and displays just fine. BUT we are phasing out this product (for a number of reasons) and would really like the OLEDB with the ADO components work.

Just for clarification the HIT OLEDB with tADOQuery do have some fields showing as tStringFields for many of the other tables we use… not sure why it is showing as a tBytesField in this case. I am not an AS400 expert, but looking at the field definititions on the AS400 the ones showing up as tBytesField look the same as the ones showing up as tStringFields… but there must be a difference. Maybe due to being a multi-member?

So… does anyone have any guidance on how to get the correct string data that is readable?

If you need more info please ask.

Greg

  • 1 1 Answer
  • 1 View
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-14T18:29:28+00:00Added an answer on May 14, 2026 at 6:29 pm

    I found the answer… on both HIT ODBC 400 and HIT OLEDB 400 there is a property called: “Convert CCSID 65535=True” or in the OLEDB UDL it looks like “Binary Characters=True”.

    Don’t know how I missed those, but that did the trick!

    Thanks for the feedback.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

When connecting to sql server, I have the hardcoded string (local). Is this a
i am in a multi-user environment i am using access as a front end
I am converting same multi tag elements into different records. In this i am
This will be my first multi threaded application if it can be developed as
in this code I'm trying to Listening to multi connection at the same time
Im connecting to a multi-tenant database through an odata service (my client is an
We have multi user frontend/backend MS Access 2010 application. We added a process that
I am struggling with converting multi-rows values which are belong to the same user
I'm converting a large, multi-project CVS repository into Subversion using cvs2svn. It's working really
Is connecting with one IP but an error occurs with a complete strange host/ip??

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.