473,806 Members | 2,754 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

DB2 SQL Stored Procedure Build problem

I am trying to build a simple SQL stored procedure in DB2 Stored
Procedure Builder V7.

It gives me the following message. Can someone help me to identify the
problem.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN - Create stored procedure returns
-7032.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN:
-- LOG FILE P3530964.log FOR PROCEDURE QCPI039
..CREATE_DAILY_ BENEF_XREF_DN

-- DB2_SQLROUTINE_ PREPOPTS=

-- PREP/BIND MESSAGES FOR
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.sqc

LINE MESSAGES FOR P3530964.sqc
------ --------------------------------------------------------------------
SQL0060W The "C" precompiler is in progress.
SQL0091W Precompilation or binding was ended with "0"
errors and "0" warnings.

-- CONTENTS OF /udbprod/udbins40/sqllib/function/routine/sr_cpath

#!/bin/sh
PATH=$PATH:/usr/vacpp/bin
PATH=$PATH:/usr/ibmcxx/bin
PATH=$PATH:/usr/lpp/xlC/bin
export PATH

-- CONTENTS OF /udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.sh

SQLROUTINE_FILE NAME=P3530964
export SQLROUTINE_FILE NAME
export SQLROUTINE_ENTR Y=pgsjmp

-- COMPILATION COMMAND:

xlC_r -I/udbprod/udbins40/sqllib/include P3530964.c -bE:P3530964.exp
-e pgsjmp -o P3530964 -L/udbprod/udbins40/sqllib/lib -ldb2
-- CONTENTS OF /udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.exp

pgsjmp
-- COMPILATION MESSAGES FOR
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.c
xlC_r: 1501-224 fatal error in /usr/ibmcxx/exe/munch: signal 4
received

-- END OF LOG FILE (SQLCODE: -7032)
QCPI039.CREATE_ DAILY_BENEF_XRE F_DN - Changes rolled back.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN - Build failed.
Nov 12 '05 #1
5 4302
dharmadam wrote:
I am trying to build a simple SQL stored procedure in DB2 Stored
Procedure Builder V7.

It gives me the following message. Can someone help me to identify the
problem.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN - Create stored procedure returns
-7032.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN:
-- LOG FILE P3530964.log FOR PROCEDURE QCPI039
.CREATE_DAILY_B ENEF_XREF_DN

-- DB2_SQLROUTINE_ PREPOPTS=

-- PREP/BIND MESSAGES FOR
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.sqc

<SNIP>

Check the permissions on directory

/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp

DB2 is unable to write to that directory.

N. Shamsundar
University of Houston
Nov 12 '05 #2
Signal 4 is SIGILL on AIX, illegal instruction. Can you compile a
different SQL procedure on that system, or do they all fail? It might
be a problem with the C compiler that's installed.

Cheers
Serge
Nov 12 '05 #3
"N. Shamsundar" <sh************ ******@nospam.x yz> wrote in message news:<cl******* ****@masala.cc. uh.edu>...
dharmadam wrote:
I am trying to build a simple SQL stored procedure in DB2 Stored
Procedure Builder V7.

It gives me the following message. Can someone help me to identify the
problem.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN - Create stored procedure returns
-7032.

QCPI039.CREATE_ DAILY_BENEF_XRE F_DN:
-- LOG FILE P3530964.log FOR PROCEDURE QCPI039
.CREATE_DAILY_B ENEF_XREF_DN

-- DB2_SQLROUTINE_ PREPOPTS=

-- PREP/BIND MESSAGES FOR
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.sqc

<SNIP>

Check the permissions on directory

/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp

DB2 is unable to write to that directory.

N. Shamsundar
University of Houston


I don't thinh that was the problem. I see the log, scm,sqc files are
created in the directory.
Nov 12 '05 #4
Serge Rielau <sr*****@ca.ibm .com> wrote in message news:<2u******* ******@uni-berlin.de>...
Signal 4 is SIGILL on AIX, illegal instruction. Can you compile a
different SQL procedure on that system, or do they all fail? It might
be a problem with the C compiler that's installed.

Cheers
Serge


I tied with very simple SQL statement and all fails with the same error.
Nov 12 '05 #5
dharmadam wrote:
"N. Shamsundar" <sh************ ******@nospam.x yz> wrote in message news:<cl******* ****@masala.cc. uh.edu>...
dharmadam wrote:
I am trying to build a simple SQL stored procedure in DB2 Stored
Procedure Builder V7.

It gives me the following message. Can someone help me to identify the
problem.

QCPI039.CREA TE_DAILY_BENEF_ XREF_DN - Create stored procedure returns
-7032.

QCPI039.CREA TE_DAILY_BENEF_ XREF_DN:
-- LOG FILE P3530964.log FOR PROCEDURE QCPI039
.CREATE_DAIL Y_BENEF_XREF_DN

-- DB2_SQLROUTINE_ PREPOPTS=

-- PREP/BIND MESSAGES FOR
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp/P3530964.sqc


<SNIP>

Check the permissions on directory

/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp

DB2 is unable to write to that directory.

N. Shamsundar
University of Houston

I don't thinh that was the problem. I see the log, scm,sqc files are
created in the directory.

Try, anyway:

chmod a+wx
/udbprod/udbins40/sqllib/function/routine/sqlproc/ANARPT/QCPI039/tmp

and then try to install the SP. This won't hurt and won't take much time
to do.

If this works, you may need to examine your umask settings.

N. Shamsundar
University of Houston
Nov 12 '05 #6

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

Similar topics

7
3260
by: Alex | last post by:
Hi all, I am trying to install a java stored procedure via the windows development centre. The linux box is running 8.1 FP4 as is the windoze platform. If I am on the linux box i can install the sample jdbc stored procedures o.k. For the purpose of this test I created a sample procedure that executes "select * from department" when conected to the sample database on the linux box.
3
2810
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" when I launched the IBM Distributed Debugger via D:\IBMDebug>idebug.exe -qdaemon -quiport=8000,8001 First, a bit of background. I am running DB2 V7.2 with Fixpack 9 applied on Windows XP Professional (all critical service applied). I've written...
2
9249
by: Kent Lewandowski | last post by:
hi all, Recently I wrote some stored procedures using java jdbc code (admittedly my first stab) and then tried to implement the same within java packages (for code reuse). I encountered problems doing this. I wanted to implemented a generic "Helper" class like this: /** * Helper
0
2017
by: Juan Carlos Huitzache | last post by:
Hi, I am trying to build a very simple Java stored procedure on DB2 V8.2 for AIX. I use the WSAD 5.1 or the DB2 Development Center with the same result: C:\Program Files\SQLLIB\java\jdk\bin\jar cf SQL50107055425339.jar com\ibm\xseries\PROCEDURE1.class DB2INST1.PROCEDURE1 - Jar file created.
2
3153
by: Michael | last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP, I am unable to find out why the "Build for Debug" option within Stored Procedure Builder is not enabled on Java stored procedures. It is enabled for SQL stored procedures. It is possible to "Build" and "Run" the Java SPs, it just isn't possible to click on the "Build for Debug" option. Thanks for any help in advance. Michael
1
7533
by: peaceburn | last post by:
Hi, I'm gonna pull my hair in the coming days with these DB2 stored procedures. So the issue, let's assume a simple stored procedure like this : CREATE PROCEDURE MYSCHEMA.PROCEDURE1 ( ) DYNAMIC RESULT SETS 1 ------------------------------------------------------------------------
1
4309
by: gregoryday | last post by:
I am battling to get a stored procedure to build: I have a stored procedure working in SQL Server 2000, and now need to port it to DB2. I will be accessing the stored procedure via VB.NET. The stored procedure reads a value from a table, increments the value by 1 and writes it back into the table. The table is called LOADER.CAD_AT_LAST_UNIQUE_ID, and the field is LASTKEY. When I try to build the procedure I get the following message: ...
10
16468
by: PJackson | last post by:
Trying to declare a simple handler for SQLEXCEPTION. Simple stored proc (UDB 8.2) ---- CREATE PROCEDURE TFBUDB.SMACF_SM_DI (IN POL_NBR CHAR(10) , OUT ErrNo INTEGER , OUT ErrMsg CHAR(80) ) ------------------------------------------------------------------------ -- SQL Stored Procedure ------------------------------------------------------------------------ P1: BEGIN
3
4206
by: annoir | last post by:
I am trying to create a stored procedure using the DB2 Connect Development Center. I am able to create the project, connect to the remote database on the mainframe and create the stored procedure. However, when I build I get the following message: SQL0567N "I01" is not a valid authorization ID. SQLSTATE=42503 I01.ED_MAINLINE_PERSON - Build failed. The options for the database connection are as follows:
0
9599
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10624
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10374
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10111
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7650
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5546
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5684
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4330
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 we have to send another system
3
3010
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 can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.