Invalid string or buffer length. SQLSTATE=HY090

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
supernova2005
Participant
Posts: 37
Joined: Mon Jan 24, 2005 10:12 am

Invalid string or buffer length. SQLSTATE=HY090

Post by supernova2005 »

Hi everyone,

This error message appears on some of my DB2 stages, and if I replace the DB2 stage with a DRS stage, the error message disappeared. Does anyone know what's going on?

here is the error message:

APT_CombinedOperatorController,0: Fatal Error: Fatal: [IBM][CLI Driver] CLI0131E Invalid string or buffer length. SQLSTATE=HY090
SQLTables: Error retrieving system catalog information for requested tables(s).
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Had faced the same problem for two different reasons.

1. Specified the alias for a table, but this alias was mentioned wrongly and that caused this issue. DataStage should not allow us to compile When alias wronly specified but we were able to compile.

2. Change all char datatype to varchar data type then run the job. And this could resolve the issue.

Regards
Saravanan
supernova2005
Participant
Posts: 37
Joined: Mon Jan 24, 2005 10:12 am

Post by supernova2005 »

Saravanan, Thank you for the reply. I remove the alias on the input and output db2 tables, and changed all chars to VarChars, but the problem still exists. Is there any other possible solution?



elavenil wrote:Had faced the same problem for two different reasons.

1. Specified the alias for a table, but this alias was mentioned wrongly and that caused this issue. DataStage should not allow us to compile When alias wronly specified but we were able to compile.

2. Change all char datatype to varchar data type then run the job. And this could resolve the issue.

Regards
Saravanan
elavenil
Premium Member
Premium Member
Posts: 467
Joined: Thu Jan 31, 2002 10:20 pm
Location: Singapore

Post by elavenil »

Looked at one of IBM DB2 doc, it says as follows.

HY090 Invalid string or buffer length. The value specified for the argument BufferLength was less than 0 or the values specified for the argument DataLinkLength was less than 0 and not equal to SQL_NTS.

You can check your client libraries for DB2.

Regards
Saravanan
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

What is your DB2 stage doing? Is it a write? Can you provide more details?
supernova2005
Participant
Posts: 37
Joined: Mon Jan 24, 2005 10:12 am

Post by supernova2005 »

The DB2 stage is simply reading a table. There is no trick at all.
bcarlson wrote:What is your DB2 stage doing? Is it a write? Can you provide more details?
roy
Participant
Posts: 2598
Joined: Wed Jul 30, 2003 2:05 am
Location: Israel

Post by roy »

Hi,
Disable operator combination to get the exact stage causing the error and if you still need help repost the new error you get (add an env var of APT_DISABLE_COMBINATION with true value in your parameters list for that job or set it project wide).

other then that it seems you don't have the required permitions for using px stages to read the table (usually you need permitions to some system/schema tables - all in the installation notes)

IHTH,
Roy R.
Time is money but when you don't have money time is all you can afford.

Search before posting:)

Join the DataStagers team effort at:
http://www.worldcommunitygrid.org
Image
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

DataStage does not prepare SQL when compiling, so it could not detect SQL syntax errors at this time.

Validating the job would have picked up the SQL syntax error.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply