DB2 stored procedure
Posted: Mon Mar 05, 2012 7:48 am
Hi
I have a DB2 stored proc, and im passing a parameter (150 char length) and it returns an output of 29500 length. Also the guy who created the stored proc gave me a copy book (output format).
In my job im using a stored proc stage to call this stored proc. Im passing the parameter manually 91 parameter -150 char length, just to test). Its running fine without any warnings or fatal error, but the output is kind different. that is, im able to see only the first 100 chars and anything after that is populated with space.
This is the command im using
call stord_proc_name(input_param,?);
this works fine in datastage and in DB2 command editor, but boh are giving me only the first 150 chars, the remaining are only spaces. but when the team who wrote the stored proc runs it for the same parameters, they are able to see the entire output... can somebody help me. Please let me know if you need the copy book layout.
I have a DB2 stored proc, and im passing a parameter (150 char length) and it returns an output of 29500 length. Also the guy who created the stored proc gave me a copy book (output format).
In my job im using a stored proc stage to call this stored proc. Im passing the parameter manually 91 parameter -150 char length, just to test). Its running fine without any warnings or fatal error, but the output is kind different. that is, im able to see only the first 100 chars and anything after that is populated with space.
This is the command im using
call stord_proc_name(input_param,?);
this works fine in datastage and in DB2 command editor, but boh are giving me only the first 150 chars, the remaining are only spaces. but when the team who wrote the stored proc runs it for the same parameters, they are able to see the entire output... can somebody help me. Please let me know if you need the copy book layout.