473,406 Members | 2,467 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

urgent help me plz

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
------------------------------------------------------------------------
-- SQL Stored Procedure
------------------------------------------------------------------------
P1: BEGIN
DECLARE v_query VARCHAR(6000);
DECLARE v_query2 VARCHAR(6000);
DECLARE v_query3 VARCHAR(6000);
DECLARE cur_size_query CURSOR WITH RETURN TO CLIENT FOR stmt;
-- DECLARE cur_size_query1 CURSOR WITH RETURN TO CLIENT FOR stmt1;
-- DECLARE cur_size_query2 CURSOR WITH RETURN TO CLIENT FOR stmt2;
IF p_dummy='A' THEN

SET v_query= ' select
sum(length(ticker_attach)+length(ticker_attach_id) +
length(company_id)+length(category)+length(attach_ name)+length(added_by)+

length(added_date)+(length(COALESCE(comments,'''') ))+(length(COALESCE(news_head_line,'''')))+(length (COALESCE(resource,''''))))
' ||
'/ (1024)' ||
'Ticker_attachment_in_Kb' ||
' from ticker_attachment ' ;

ELSEIF p_dummy='B' THEN
SET v_query='select sum(length(COALESCE(xi_research,'''')))' ||
'/ (1024)' ||
'xi_rates_hist_in_Kb' ||
' from xi_rates_hist ' ;
ELSEIF p_dummy='C' THEN

SET v_query='select sum(length(COALESCE(xi_research,'''')))' ||
'/ (1024)' ||
'company_ratings_in_Kb' ||
' from company_ratings ' ;
END IF;

PREPARE stmt FROM v_query;
--PREPARE stmt1 FROM v_query2;
-- PREPARE stmt2 FROM v_query3;

OPEN cur_size_query;
-- OPEN cur_size_query1;
-- OPEN cur_size_query2;

END P1
but it is giving me a error like below . it is working fine in local
server, but it is not at all building in test server what could be the
problem plz help me its urgent.

XIREL2.proc_size - Build started.
Create stored procedure returns -7032.

-- LOG FILE P8224385.log FOR PROCEDURE XIREL2 .PROC_SIZE

-- DB2_SQLROUTINE_PREPOPTS=

-- PREP/BIND MESSAGES FOR
C:\PROGRA~1\IBM\SQLLIB\function\routine\sqlproc\SP ANDB\XIREL2\tmp\P8224385.sqc
-- PREP/BIND ERROR CODES: 0 -1

LINE MESSAGES FOR P8224385.sqc
------
--------------------------------------------------------------------
SQL0060W The "C" precompiler is in progress.
448 SQL0010N The string constant beginning with " select
sum(length(ticker_attach)+length(ticker_attach_id) +
length(com" does not have an ending string delimiter.
SQL0095N No bind file was created because of previous
errors.
SQL0092N No package was created because of previous
errors.
SQL0091W Precompilation or binding was ended with "3"
errors and "0" warnings.

-- END OF LOG FILE (SQLCODE: -1)
XIREL2.proc_size - Build failed.
XIREL2.proc_size - Roll back completed successfully.
thanks and regards
sridhar

Jun 20 '06 #1
1 1378
Raj
try this

create procedure .....
......
.....
END P1
@
and compile using db2 -td@ -vstf proc

Jun 20 '06 #2

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

Similar topics

3
by: Rob | last post by:
I have a form - when you click the submit button, it appends a variable to the URL (e.g. xyz.cgi?inputID=some_dynamic_variable) It also opens a new page. Now, that some_dynamic_variable is...
9
by: Stefan Bauer | last post by:
Hi NG, we've got a very urgent problem... :( We are importing data with the LOAD utility. The input DATE field data is in the format DDMMYYYY (for days) and MMYYYY (for months). The target...
8
by: Mike | last post by:
Hello, I have a few rather urgent questions that I hope someone can help with (I need to figure this out prior to a meeting tomorrow.) First, a bit of background: The company I work for is...
28
by: Tamir Khason | last post by:
Follwing the struct: public struct TpSomeMsgRep { public uint SomeId;
16
by: | last post by:
Hi all, I have a website running on beta 2.0 on server 2003 web sp1 and I keep getting the following error:- Error In:...
7
by: zeyais | last post by:
Here is my HTML: <style> ..leftcolumn{float:left;width:300px;border: 1px solid #ccc} ..rtcolumn{float:left;width:600px;border: 1px solid #ccc} </style> <body> <div class="leftcolumn"...
33
by: dembla | last post by:
Hey Frnds can anyone help me in this i need a program in 'c' PROGRAM to print NxN Matrix 9 1 8 1 2 3 2 7 3 as 4 5 6 6 4 5 7 8 9 in sorted form
8
by: ginnisharma1 | last post by:
Hi All, I am very new to C language and I got really big assignment in my work.I am wondering if anyone can help me.........I need to port compiler from unix to windows and compiler is written...
3
by: N. Spiker | last post by:
I am attempting to receive a single TCP packet with some text ending with carriage return and line feed characters. When the text is send and the packet has the urgent flag set, the text read from...
7
by: Cirene | last post by:
I used to use the Web Deployment Project with my VS2005 projects. Now I've fully upgraded to VS2008. Do I have to download a new version of the Web Deployment Project? If so where can I find...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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
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,...

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.