473,403 Members | 2,293 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,403 software developers and data experts.

Problems creating stored procedure

I am running DB2 Express V 8.1 on Windows XP
I have installed the Visual C/C++ compiler the command to invoke the
compiler is cl

I am attempting to install the stored procedure defined below

CREATE PROCEDURE TESTQC.ECMP2000

(INOUT str VARCHAR(32) for bit data)

RESULT SETS 0

LANGUAGE SQL

BEGIN

SET str = 'STRING';

END

@

with the following command in the command line prompt

db2 -v -td@ -f testproc.sql

I obtain the following error message

DB21034E The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it returned:
SQL7032N SQL procedure "ECMP2000" not created. Diagnostic file is
"P4080374.log". SQLSTATE=42904

Where is the file P4080374.log located? Could it be a problem the the the c
compiler. I have ensured that it is within the path of the command processor
window I am using.

On another note when I to use the development center obtain an error
concerning nmake not being found

Is there a document that comprehensively describes how t o use these
products

Thanks

Solomon


Nov 12 '05 #1
2 4815
See
Retaining Intermediate Files for SQL Procedures
http://publib.boulder.ibm.com/infoce...69%6c%65%22%20

SQLSTATE 42904: The SQL procedure was not created because of a compile
error.

PM

"Solomon Obi" <so******@yahoo.com> a écrit dans le message de
news:5Q******************@nwrdny01.gnilink.net...
I am running DB2 Express V 8.1 on Windows XP
I have installed the Visual C/C++ compiler the command to invoke the
compiler is cl

I am attempting to install the stored procedure defined below

CREATE PROCEDURE TESTQC.ECMP2000

(INOUT str VARCHAR(32) for bit data)

RESULT SETS 0

LANGUAGE SQL

BEGIN

SET str = 'STRING';

END

@

with the following command in the command line prompt

db2 -v -td@ -f testproc.sql

I obtain the following error message

DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
SQL7032N SQL procedure "ECMP2000" not created. Diagnostic file is
"P4080374.log". SQLSTATE=42904

Where is the file P4080374.log located? Could it be a problem the the the c compiler. I have ensured that it is within the path of the command processor window I am using.

On another note when I to use the development center obtain an error
concerning nmake not being found

Is there a document that comprehensively describes how t o use these
products

Thanks

Solomon

Nov 12 '05 #2
See
Retaining Intermediate Files for SQL Procedures
http://publib.boulder.ibm.com/infoce...69%6c%65%22%20

SQLSTATE 42904: The SQL procedure was not created because of a compile
error.

PM

"Solomon Obi" <so******@yahoo.com> a écrit dans le message de
news:5Q******************@nwrdny01.gnilink.net...
I am running DB2 Express V 8.1 on Windows XP
I have installed the Visual C/C++ compiler the command to invoke the
compiler is cl

I am attempting to install the stored procedure defined below

CREATE PROCEDURE TESTQC.ECMP2000

(INOUT str VARCHAR(32) for bit data)

RESULT SETS 0

LANGUAGE SQL

BEGIN

SET str = 'STRING';

END

@

with the following command in the command line prompt

db2 -v -td@ -f testproc.sql

I obtain the following error message

DB21034E The command was processed as an SQL statement because it was not a valid Command Line Processor command. During SQL processing it returned:
SQL7032N SQL procedure "ECMP2000" not created. Diagnostic file is
"P4080374.log". SQLSTATE=42904

Where is the file P4080374.log located? Could it be a problem the the the c compiler. I have ensured that it is within the path of the command processor window I am using.

On another note when I to use the development center obtain an error
concerning nmake not being found

Is there a document that comprehensively describes how t o use these
products

Thanks

Solomon

Nov 12 '05 #3

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

Similar topics

5
by: Lili | last post by:
I'm having problems creating a simple stored procedure in DB2. Can someone help? Here is the screen dump when I tried to load the stored procedure. Thanks for any help. Create procedure...
3
by: Rhino | last post by:
I've spent the last couple of hours trying to figure out how to debug a Java stored procedure and am just going in circles. The last straw came when I got "Cannot open input stream for default"...
0
by: billmiami2 | last post by:
Perhaps many of you MS Access fanatics already know this, but it seems that stored procedures and views are possible in Jet. I thought I would leave this message just in case it would help anyone....
6
by: Not Me | last post by:
Hi, I have a stored procedure as a recordsource for a form, taking a parameter from another form, it displays records that are already present without any problems. I had to add a resync...
1
by: Ir0neagle | last post by:
I am generating upgrade/new install scripts for my project. I am able to do this in oracle and sql server but an running into problems in db2. What I am trying to do is to use some logic to only...
2
by: =?Utf-8?B?SXbDoW4gU2Fpbno=?= | last post by:
I ran the aspnet_regsql.exe tool with the -sqlexportonly option to create the script. I searched and replace the string by and had the dba's run the script. When I do anything like...
2
by: Andy | last post by:
Hi guys I having a problem creating a report in Access 2003 project talking to a SQL database through and ODBC connect. After hours of trying things from Access Help, MSDN and Google I still...
0
by: mersis | last post by:
I have a very very annoying problem. I want to create a stored procedure, that creates a table and does various things with it. Before creating a stored procedure I check if the table is there. If it...
2
by: Andrew Cooper | last post by:
Greetings, I'm creating a website using ASP.NET. In creating my DAL I've got a Table Adapter that I've set up to use an existing Stored Procedure from an SQL Server 2000 database. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
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
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
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,...
0
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...

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.