This week's book giveaway is in the Big Data forum.
We're giving away four copies of Elasticsearch in Action and have Radu Gheorghe & Matthew Lee Hinman on-line!
See this thread for details.
The moose likes JDBC and Relational Databases and the fly likes pass two bytes of space to DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Elasticsearch in Action this week in the Big Data forum!
JavaRanch » Java Forums » Databases » JDBC and Relational Databases
Bookmark "pass two bytes of space to DB2" Watch "pass two bytes of space to DB2" New topic

pass two bytes of space to DB2

JayaSiji Gopal
Ranch Hand

Joined: Sep 27, 2004
Posts: 303
I have a java program, which takes a string as input.
I need to check, if the length of the string is zero.
If the length is zero, i need to pass an empty string of 2 bytes to the DB2 Stored procedure.

The SP expects a string of 26 bytes.

Can anybody please help!

SCJP 1.4, SCWCD 1.4<br /> <br />Thanks in advance!<br />Jayashree.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: pass two bytes of space to DB2