1

I am new to this so excuse and obvious issues. The only driver I can get a successful connection with is the JTOpen driver. I assume this is because our database version is so old. Anyhow, whats strange is one schema has the expected results but the other schema has columns that give results in EBCDIC, i believe. See my screen shot.

I have tried all of the drivers and the different types and versions but only JTOpen works with version 10.4

3
  • 1
    Its an I series AS400 version 7.5 Commented Sep 9, 2024 at 19:34
  • IBM i 7.5 isn't old...it's the latest version. Commented Sep 9, 2024 at 20:19
  • 1
    I have more details. Some of the tables are encoded with CCSID=37 and some are CCSID=65535. 37 are converting properly and the 65535 are not. Commented Sep 9, 2024 at 20:59

1 Answer 1

3

The schema you are getting funky data from has the character fields defined as CCISD(65535) aka "Binary data".

By design, the JDBC driver won't translate that to ASCII or whatever your local language is.

The right solution, is to ensure that your DB tables have the columns tagged with the appropriate CCSID.

But as a workaround, you can set "translate binary" to true on the JDBC connection to force it to translate the mis-tagged fields.

Sign up to request clarification or add additional context in comments.

1 Comment

awesome. That fixed it. It sure would be nice if Jetbrains could provide such quick responses as you all!

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.