File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes JDBC and the fly likes pass two bytes of space to DB2 Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply Bookmark "pass two bytes of space to DB2" Watch "pass two bytes of space to DB2" New topic
Author

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.
 
I agree. Here's the link: http://zeroturnaround.com/jrebel
 
subject: pass two bytes of space to DB2
 
Similar Threads
Java endian and bit order and signed and unsigned and python and more confusion than I can deal with
Java array and String problem
How can I specify size of a String?
How Java reads a program
Collaboration