473,511 Members | 9,908 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

urgent : stored procedure not accepting data string more than 1024 bytes

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 being called from a V7 DB2 connect client.

The stored procedure is giving SQL0104N An unexpected token was found
if my varchar data goes beyond 1024 bytes. Anything under 1025 bytes
on that column is working perfectly.
Does anybody know of any limitation of Stored procedure.

here is the stored procedure

CREATE PROCECURE CUSTOMSP
(
,IN CUSTOMER_NO CHAR(10)
,IN ORD_NO CHAR(8)
,IN ENCODED_DATA VARCHAR(32648)
,OUT WSRETURN INT
)
FENCED
LANGUAGE COBOL
EXTERNAL NAME 'CUSTOMSP'
NOT DETERMINISTIC
MODIFIES SQL DATA
NO DBINFO
COLLID CUSTOMR
NO WLM ENVIRONMENT
ASUTIME NO LIMIT
RESULT SETS 1
STAY RESIDENT NO
PROGRAM TYPE MAIN
SECURITY DB2
COMMIT ON RETURN NO

here is my call statement

CALL
CUSTOMSP('A123456789','12345678','000001ABCDEFGHIJ 12345678901234567890
12345678901234567890123456789012345678901234567890 1234567890123456789
0000002ABCDEFGHIJ123456789012345678901234567890123 45678901234567890
123456789012345678901234567890123456789Z000003ABCD EFGHIJ12345678901
23456789012345678901234567890123456789012345678901 2345678901234567890
123456789z000004ABCDEFGHIJ123456789012345678901234 5678901234567890
12345678901234567890123456789012345678901234567890 000005ABCDEFGHIJ
12345678901234567890123456789012345678901234567890 123456789012345678
9012345678901234567890000006ABCDEFGHIJ123456789012 34567890123456789
01234567890123456789012345678901234567890123456789 0123456789Z000007
ABCDEFGHIJ1234567890123456789012345678901234567890 1234567890123456
789012345678901234567890123456789z000008ABCDEFGHIJ 1234567890123456
78901234567890123456789012345678901234567890123456 78901234567890
1234567890000009ABCDEFGHIJ123456789012345678901234 56789012345678901
23456789012345678901234567890123456789012345678900 00010ABCDEFGHIJ
12345678901234567890123456789012345678901234567890 12345',?);

Below is the message I am getting :
SQL0104N An unexpected token
"'000001ABCDEFGHIJ1234567890123456789012345678 90" was found following
","
Expected tokens may include: "<server-input-data>". SQLSTATE=42601

Any help is apprecaited

Thanks

Roger

Sep 11 '06 #1
0 1396

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
3834
by: Thomas Paul Diffenbach | last post by:
Can anyone point me to an open source library of /statically allocated/ data structures? I'm writing some code that would benefit from trees, preferably self balancing, but on an embedded system...
2
5437
by: Dino L. | last post by:
How can I run stored procedure (MSSQL) ?
3
1465
by: Jack Black | last post by:
Help!! I'm trying to call a custom stored procedure from a VB.Net code-behind page in an ASP.Net application, and I keep getting an error with no real helpful info... Basically, I'm accepting a...
1
1385
by: situ | last post by:
hi all, this is the procedure i have created CREATE PROCEDURE XIREL2.proc_size_2 (p_dummy CHAR(1)) SPECIFIC XIREL2.proc_size_2 DYNAMIC RESULT SETS 3...
2
2923
by: Roger | last post by:
I 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...
4
3965
by: nishi57 | last post by:
I hope I can get some help regarding this issue, which has been going on for a while. I have a desktop user who is having problem running "Stored Procedures". The DB2 Connect application works fine...
0
2534
by: ravindrag | last post by:
Hi, I am getting error SQL1131N during sqlj.install_jar(...). There is no useful message in the diag.log (even with diag level 4). I am giving the diag.log entries at the end of this posting...
0
2553
by: db2user24 | last post by:
I'm trying to invoke a DB2 stored procedure. The stored proc is coded in C and compiled to a shared library, which has been placed in the <DB2 dir>/functions directory. The platform is Linux (using...
4
6479
by: Veeraraghavan | last post by:
Hi All, I am developing a client server communication using system.net.socket and I am finding it very difficult to get a solution for this. I started with single port communication with single...
0
7251
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
7367
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
7430
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
7089
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
5673
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,...
1
5072
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4743
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1581
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 ...
0
451
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.