Giter Site home page Giter Site logo

Comments (7)

edmundpf avatar edmundpf commented on May 30, 2024 1

I have tried setting the CCSID environment variable to '0', '37', '1208', and '65535'

Try updating the CCSID for your User profile with the following CL command.

CHGUSRPRF USRPRF(USER) CCSID(CCSID)

CCSID 37 is valid for United States other English speaking countries
It is possible that your user profile CCSID is currently set to *SYSVAL and the system value is set to 65535.
View the system value with:

WRKSYSVAL SYSVAL(QCCSID)

Thank you I will try this and let you know if this resolves the issue ASAP

This worked, keep in mind for others facing this issue, after you CHGUSRPRF for the user, you may have to log out of shell and back in or restart whatever process uses this for the change to take. Will go ahead and close.

from nodejs-idb-connector.

kadler avatar kadler commented on May 30, 2024 1

Another option might be to set the SQL_ATTR_NON_HEXCCSID CLI environment attribute. This will change the job CCSID to the default job CCSID if the the job CCSID is 65535. The default job CCSID is guaranteed to be a non-65535 CCSID.

Although idb-connector supports setting attributes, I'm not sure if this one can be set by the user, since it's an environment attribute and thus require a code change in idb-connector. FWIW, in the version of Python ibm_db we ship, we force this on: https://github.com/kadler/python-ibmdb/blob/ibmi/IBM_DB/ibm_db/ibm_db.c#L1492

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 30, 2024

I have tried setting the CCSID environment variable to '0', '37', '1208', and '65535'

Try updating the CCSID for your User profile with the following CL command.

CHGUSRPRF USRPRF(USER) CCSID(CCSID)

CCSID 37 is valid for United States other English speaking countries

It is possible that your user profile CCSID is currently set to *SYSVAL and the system value is set to 65535.

View the system value with:

WRKSYSVAL SYSVAL(QCCSID)

from nodejs-idb-connector.

edmundpf avatar edmundpf commented on May 30, 2024

I have tried setting the CCSID environment variable to '0', '37', '1208', and '65535'

Try updating the CCSID for your User profile with the following CL command.

CHGUSRPRF USRPRF(USER) CCSID(CCSID)

CCSID 37 is valid for United States other English speaking countries

It is possible that your user profile CCSID is currently set to *SYSVAL and the system value is set to 65535.

View the system value with:

WRKSYSVAL SYSVAL(QCCSID)

Thank you I will try this and let you know if this resolves the issue ASAP

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 30, 2024

Glad you got this resolved! This is a common issue can read more about why here: http://yips.idevcloud.com/wiki/index.php/IBMi/65535.

from nodejs-idb-connector.

abmusse avatar abmusse commented on May 30, 2024

Nice! I think we should do the same in this package given that the CCSID 1208 and CCSID 65535 not valid issue is quite common.

from nodejs-idb-connector.

kadler avatar kadler commented on May 30, 2024

Agreed!

from nodejs-idb-connector.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.