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

DB2 V7 Import/Run Script problem

Hello,

My old laptop has DB2 V7 thereon. The only fixpaks I ever applied were
FP1 (although I cant truly remember if I actually did this one) and
FP2. Because it/they entirely satisfied my needs I applied no more
fixpaks. And I didn't keep FP1 or FP2:-( but we're going back six or
seven years here!

I got a new laptop and put my V7 thereon. As experienced with the old
machine, the 'bit' of DB2 I critically needed didn't work. So off I
went to the download site and lo and behold found fixpaks 1 thru 14
(or thereabouts) with the GLARING exception of FP2_WR21246.

So I figured FP3 should fix me up. But it didn't. My problem remained.

So, two questions if I might:

does anybody by any chance have FP2?
and/or
has anybody experienced my problem, if so, which FP rectified the
problem?
--------------------------------------------------------------------------

My DB2 is:
Version 7
service lvl 0
release 1
mod 0
running under Windows NT4.0 SP6

---------------------------------------------------------------------------

Here's what happens:
I imported the following script (partial list only) via the Command
Centre:

CONNECT TO WCB3;
DROP TABLE DODBDATA;
CREATE TABLE DODBDATA (
CUSTOMER_NUMBER_AAAAAAA_NUMBER CHAR(5) NOT NULL,
CUSTOMER_NAME_BBBBBBBBBBB_NAME CHAR(33) NOT NULL,
ADDRESS_1 CHAR(33) NOT NULL,
ADDRESS_2 CHAR(31) NOT NULL,
POST_CODE CHAR(7) NOT NULL,
ATTENTION CHAR(10) NOT NULL,
VAT_REGTN_VVVVVVVVVVVVVV_REGTN CHAR(10) NOT NULL,
IN_STOCKS_TTTTTTTTTTTTTTTTTTTX DECIMAL(7,00) NOT NULL,
TOTAL_CARS DECIMAL(7,00) NOT NULL,
ZD_FIELD DECIMAL(3,01) NOT NULL,
ZU_FIELD DECIMAL(3,02) NOT NULL,
PRIMARY KEY (
CUSTOMER_NUMBER_AAAAAAA_NUMBER
)
);
CREATE INDEX DODBDATA_I2 ON DODBDATA (
CUSTOMER_NAME_BBBBBBBBBBB_NAME
ASC);
INSERT INTO DODBDATA (
CUSTOMER_NUMBER_AAAAAAA_NUMBER,
CUSTOMER_NAME_BBBBBBBBBBB_NAME,
ADDRESS_1,
etc

Then I ran the script and got the following errors (partial list
only)(sorry about the formatting):

---------------------------------Script-----------------------------------
E:\conrad\DODB\ZZJ30DDL.CMD
-----------------------------------------------------------------------------
SQL1001N "WCB3;" is not a valid database name. SQLSTATE=2E000DB21034E
The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it
returned:SQL1024N A database connection does not exist.
SQLSTATE=08003

DB21034E The command was processed as an SQL statement because it was
not a valid Command Line Processor command. During SQL processing it
returned:SQL1024N A database connection does not exist.
SQLSTATE=08003
etc, etc

.... but

WCB3 is a database name and the 2E000 says 'Connection name is
invalid'. So I figure the semi-colon after the WCB3 must have
something to do with it and

a) the script parser ain't that smart
b) you have to tell DB2 the semi-colon is a stmt delimiter (in which
case - I ain't that smart).

What really puzzles me is in the old days when FP1/FP2 did the trick,
now FP2's gone (and why?), yet FP3 didn't carry the fix. Can't figure
that at all! Thought these fixpaks were cumulative.

Any help would be gratefully appreciated.
Thanks
Graham Hobbs
--
Posted via a free Usenet account from http://www.teranews.com

Apr 25 '07 #1
1 3555
Graham Hobbs wrote:
does anybody by any chance have FP2?
FixPaks are cumulative, i.e. all changes in FP2 are also in FP3. That's
true to FP1 thru FP7 and FP8 thru FP14 in V7. In V8, all FPs are
cumulative.
and/or
has anybody experienced my problem, if so, which FP rectified the
problem?
--------------------------------------------------------------------------

My DB2 is:
Version 7
service lvl 0
release 1
mod 0
running under Windows NT4.0 SP6

---------------------------------------------------------------------------

Here's what happens:
I imported the following script (partial list only) via the Command
Centre:

CONNECT TO WCB3;
DROP TABLE DODBDATA;
CREATE TABLE DODBDATA (
CUSTOMER_NUMBER_AAAAAAA_NUMBER CHAR(5) NOT NULL,
CUSTOMER_NAME_BBBBBBBBBBB_NAME CHAR(33) NOT NULL,
ADDRESS_1 CHAR(33) NOT NULL,
ADDRESS_2 CHAR(31) NOT NULL,
POST_CODE CHAR(7) NOT NULL,
ATTENTION CHAR(10) NOT NULL,
VAT_REGTN_VVVVVVVVVVVVVV_REGTN CHAR(10) NOT NULL,
IN_STOCKS_TTTTTTTTTTTTTTTTTTTX DECIMAL(7,00) NOT NULL,
TOTAL_CARS DECIMAL(7,00) NOT NULL,
ZD_FIELD DECIMAL(3,01) NOT NULL,
ZU_FIELD DECIMAL(3,02) NOT NULL,
PRIMARY KEY (
CUSTOMER_NUMBER_AAAAAAA_NUMBER
)
);
CREATE INDEX DODBDATA_I2 ON DODBDATA (
CUSTOMER_NAME_BBBBBBBBBBB_NAME
ASC);
INSERT INTO DODBDATA (
CUSTOMER_NUMBER_AAAAAAA_NUMBER,
CUSTOMER_NAME_BBBBBBBBBBB_NAME,
ADDRESS_1,
etc

Then I ran the script and got the following errors (partial list
only)(sorry about the formatting):

---------------------------------Script-----------------------------------
E:\conrad\DODB\ZZJ30DDL.CMD
-----------------------------------------------------------------------------
SQL1001N "WCB3;" is not a valid database name. SQLSTATE=2E000DB21034E
The command was processed as an SQL statement because it was not a
valid Command Line Processor command. During SQL processing it
returned:SQL1024N A database connection does not exist.
SQLSTATE=08003

DB21034E The command was processed as an SQL statement because it was
not a valid Command Line Processor command. During SQL processing it
returned:SQL1024N A database connection does not exist.
SQLSTATE=08003
etc, etc

... but

WCB3 is a database name and the 2E000 says 'Connection name is
invalid'. So I figure the semi-colon after the WCB3 must have
something to do with it and
Please look again at the error message. It says that "WCB3;" is an invalid
database name. You probably did not specify -t option when executing the
script. Thus, the trailing ';' is not treated as statement terminator as
you assumed it would.
a) the script parser ain't that smart
b) you have to tell DB2 the semi-colon is a stmt delimiter (in which
case - I ain't that smart).

What really puzzles me is in the old days when FP1/FP2 did the trick,
now FP2's gone (and why?), yet FP3 didn't carry the fix. Can't figure
that at all! Thought these fixpaks were cumulative.
Which "fix" are you talking about? Your mistake when running the script?

p.s: Since V7 (all FP levels) is out of service for more than 1 year,
chances are slim that you will get a lot of help here. You should consider
moving to V8 or V9 (DB2 Express-C in free of charge).

--
Knut Stolze
DB2 z/OS Utilities Development
IBM Germany
Apr 25 '07 #2

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

Similar topics

0
by: John F Dutcher | last post by:
Having 'cloned' an existing python script that imports 'string' and uses "string.rstrip()" without incident... I am at a loss to explain why the new 'cloned' script (brief sample below)...
16
by: Manlio Perillo | last post by:
Hi. I'm a new user of Python but I have noted a little problem. Python is a very good language but it is evolving, in particular its library is evolving. This can be a problem when, ad example,...
3
by: krzychu | last post by:
Hi, I have installed brand new platform - Zope-2-7-6, Python 2.4.1, Plone 2.0.5, OS Debian 1:3.3.6-2. After import a old Plone site from the following platform Zope-2-7-4, Python 2.3.3, Plone...
1
by: mirandacascade | last post by:
O/S: Windows 2K Vsn of Python: 2.4 Currently: 1) Folder structure: \workarea\ <- ElementTree files reside here \xml\ \dom\
2
by: s.hong | last post by:
Hello? On the ASP.NET, I can use the class by import declation on the top of page. <%@ page language="vb" explicit="true" aspcompat="false" debug="true"%> <%@ import namespace="System.Data" %>...
1
by: geoffblanduk_nospam | last post by:
Using Apache Tomcat 5.0.28 I'm having a problem with the xsl:import command. I have several Tomcat running on the same server (they could be different releases of code so can't share resources)....
2
by: Jon | last post by:
It appears that (windows) python searches in the current working directory before looking in the local site-packages directory, or that '.' comes first in sys.path? The problem arises when I made...
11
by: Cecil Westerhof | last post by:
I have a cgi-script dat uses the modules cgi, os, sys and time. Offcourse I can not time the time used to import time, but os and sys do not take more as a millisecond. My script itself takes 3 or...
3
by: gatoruss | last post by:
Newbie here with a (hopefully not) dumb question....tried searching around on the 'Net without success, so here goes.... I have been playing around with python. I wrote a script that sends an smtp...
9
by: rsoh.woodhouse | last post by:
Hi, I'm trying to work out some strange (to me) behaviour that I see when running a python script in two different ways (I've inherited some code that needs to be maintained and integrated with...
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
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
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
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
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
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.