I am currently running DB2 for Z/OS V7.1.
When I try to create and index on a declared temporary table, a -690 SQL return code occurs. My declarations are as below :
DECLARE GLOBAL TEMPORARY TABLE SESSION.TEMP_AC CBB
( PLAN_NO CHAR(11) NOT NULL,
PLAN_STATE_NO INTEGER NOT NULL,
LIFE_INDICATOR CHAR(1) NOT NULL,
CED_CLIENT_NO INTEGER NOT NULL,
CED_COMPANY SMALLINT NOT NULL,
CED_SUB_FUND_CD CHAR(3) NOT NULL,
CED_PLAN_NO CHAR(11) NOT NULL,
CED_DISTRIB_CHA N CHAR(3) NOT NULL,
BENEFIT_NO SMALLINT NOT NULL,
COVER_BASIS_CD CHAR(3) NOT NULL,
CED_DEFN_OF_DIS CHAR(3) NOT NULL,
CED_BEFORE_AFTE R CHAR(1) NOT NULL,
ACC_CLIENT_NO INTEGER NOT NULL,
ACC_COMPANY SMALLINT NOT NULL,
ACC_SUB_FUND_CD CHAR(3) NOT NULL,
ACC_AMT_ACCEPTE D DECIMAL(15,2) NOT NULL WITH DEFAULT
);
CREATE TYPE 2 UNIQUE INDEX SESSION.IACCBB
ON SESSION.TEMP_AC CBB
(
PLAN_NO ASC ,
PLAN_STATE_NO ASC ,
LIFE_INDICATOR ASC ,
CED_CLIENT_NO ASC ,
CED_COMPANY ASC ,
CED_SUB_FUND_CD ASC ,
CED_PLAN_NO ASC ,
CED_DISTRIB_CHA N ASC ,
BENEFIT_NO ASC ,
COVER_BASIS_CD ASC ,
CED_DEFN_OF_DIS ASC ,
CED_BEFORE_AFTE R ASC ,
ACC_CLIENT_NO ASC ,
ACC_COMPANY ASC ,
ACC_SUB_FUND_CD ASC
)
CLUSTER;
The decalred temporary table seems to work fine, allowing inserts, selects, etc.
Any ideas what is causing the -690 on creating the index?
0 1963 Sign in to post your reply or Sign up for a free account.
Similar topics |
by: K Finegan |
last post by:
I have an archival process on a large database that runs once a month.
At the beginning of the process the triggers and indexes on the
tables whose data is moved are dropped, the data is moved and then the
triggers and indexes are recreated at the end. This produces a
massive improvement in performance.
The problem is the process is supposed to run on users accounts (thats
the way the front-end is set up) and they don't have the...
|
by: randi_clausen |
last post by:
Using SQL against a DB2 table the 'with' key word is used to
dynamically create a temporary table with an SQL statement that is
retained for the duration of that SQL statement.
What is the equivalent to the SQL 'with' using TSQL? If there is not
one, what is the TSQL solution to creating a temporary table that is
associated with an SQL statement? Examples would be appreciated.
Thank you!!
|
by: Sampath Reddy |
last post by:
Hi Everybody,
We are using UDB v8.1
I will explain about my Stored procedures which we are executing in
UDB AIX box. We have 3 millions(apporox) of data in 22 tables. By
applying the business logic through Stored procedures on 22 tables and
writing into 3 new tables. We have used all temporary tables except
starting 22 tables. The Stored procedures we have used nearly 6
temporary tables to handle the business logic. Finally we are loading...
|
by: Ranga |
last post by:
I was unable to run the statement "CREATE GLOBAL TEMPORARY TABLE" on
unix version of DB2, it gave the follwing error
db2 => create global temporary table temp ( OGI_SYS_NR char(8) )
DB21034E The command was processed as an SQL statement because it was
not a
valid Command Line Processor command. During SQL processing it
returned:
SQL0104N An unexpected token "create global temporary table temp (
OGI_S" was
|
by: Keith Watson |
last post by:
Hi, we are currently implementing an application running on DB2 V7 on
Z/OS using largely COBOL stored procedures, managed using WLM.
Some of these stored procedures declared global temporary tables, which
are declared with ON COMMIT DELETE ROWS to perform work on and then
return these temporary tables to the client (which is a message driven
EJB connecting via DB2 connect). The client reads the data in the result
sets, creates some XML...
| |
by: serge |
last post by:
I have all the scrips to create a database. I have a few questions:
1- I am creating a batch file that it will call many lines like:
db2 -td@ -f filename.sql -z output.txt
The order i am using is:
1- Create the database
2- Tables
3- Insert the data
|
by: Brian S. Smith |
last post by:
Hi gang,
Please help. I've been through the Access help, searched the Web, and
I can't seem to get a straight answer. As the Subject line suggests, I
want to run a fairly simple VB/Access Sub Function/Module that creates
relationships for my tables. The problem is that I need to provide for
some tables that may have > 32 relationships (which is apparently the
limit on Indexes that Access can support). How can I prevent Access
from...
|
by: Shelby |
last post by:
Problem: My company generates its own data export from a propietary
database. These (free) tables can be read in C#.NET using a Visual FoxPro
driver (vfpoledb). I can read each of the six tables into its own datatable,
modify them, and add them to a dataset. It take approximately 15 minutes to
pass that dataset to Crystal Reports (45 minutes if the report uses three
subreport datasets). Then it takes over 7 hours for Crystal to...
|
by: rawu |
last post by:
hi , all .
I got a question about creating indexes in db2 .
a table has 44236333 rows
an index planed to be build include 2 field ( 6 byte )
accordding to db2 document
temporary tablespaces requirement size will be
(6+9)*44236333*3.2/1024/1024/1024 = 1.98G
|
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
|
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...
| |
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 then checking html paragraph one by one.
At the time of converting from word file to html my equations which are in the word document file was convert into image.
Globals.ThisAddIn.Application.ActiveDocument.Select();...
|
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...
|
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
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |