473,507 Members | 2,388 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Stored Procedure - Urgent

24 New Member
Hi,

What is the maximum length of output parameter in case of procedure.

In my procedure I have mentioned "@conatresult varchar(8000)", then too result is truncated after 256 len.

EXECUTE ATTRITION_CONCAT_TEST 'EMPLOYEE_ID','#TEMP',@CONCATPROFILE1 OUTPUT
print @CONCATPROFILE1

gives total result (3704)

but select @CONCATPROFILE1

gives truncated result (256 length)

Please check & let me know

Thanks
Oct 12 '06 #1
1 1226
Fausto Guerini
4 New Member
I guess the output parameter is complete. It is the select statement that shows only 256 characters. Yoiu can see it writing
Expand|Select|Wrap|Line Numbers
  1. select substring(@CONCATPROFILE1,257,256)
by
Fausto
Oct 13 '06 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
1740
by: Peanut044 | last post by:
Hi all! I am in need of writing a few stored procedures. The first one is to create a stored procedure to recover a database from backup and the second one is to create a stored procedure to...
0
1394
by: Roger | last post by:
have a stored procedure running on DB2 V7 Z/os calling a COBOL program to do some inserts. The stored procedure have 3 input columns and one column is of varchar(32648) The stored procedure is...
1
2290
by: satish mullapudi | last post by:
Hi, I am using DB2 v8.2 & jdk 1.4. 1. I have a java program which returns an array which contains 1 to 5 numbers. The code: public class ArrayTest { public static final int ARRAY_SIZE = 5;...
7
6125
by: sri | last post by:
My environment is DB2v9.1, Windows/AIX and I am trying to compile the stored proc below and I am getting an error, "ERROR SQL0104N An unexpected token "WITH" was found following "User_ID =...
0
1120
by: cuddles | last post by:
Hi, Im very new to this and i need some urgent help. I'm converting a COBOL stored procedure into an SQL stored procedure with logic. Im using IBM DB2 and im not sure about the syntax of the...
0
1409
by: Subrat Das | last post by:
Java application invokes my stored procedure. But i am getting a strange exception when the application calls the procedure. The exception is: "The statement or function must be executed in the...
4
5141
by: roshnair | last post by:
Hi i have a small problem . I need to change one query to stored procedure and call it in my vb.net application.Query is : Select * from emp where empid in (‘001’,’002’) For this query I...
0
1561
by: ponvijaya | last post by:
Hi all, I have used a substring function inside my stored procedre as set @dummy1=substring(@dummyid,2); but when i print and check the value of @dummy1 as select @dummy1;
0
1025
by: db2readlog | last post by:
Hi, Im trying to execute a C Stored Procedure(getTransactionId.sqc) from one of Developer Works articles "Transaction IDs in DB2 -- retrieve a unique identifier for a unit of work from the DB2 log...
1
7236
by: mohit1286 | last post by:
my stored procedure in db2 is---> create procedure temp_bill(in UPC_cd character(6)) language sql begin declare prod_cd character(8);declare prod_desc varchar(30);declare discount...
0
7223
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7111
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7319
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7376
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7031
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7485
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5623
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3179
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1542
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.