Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

db2 create/load via IXF generates error SQL0104N & SQLSTATE=42601

Posted on 2004-08-04
9
1,990 Views
Last Modified: 2009-07-23
The following example:

db2 -v load from tab14.ixf of ixf modified by noheader create into STATHIST_TABLES


Generates the following message:

load from tab14.ixf of ixf modified by noheader create into STATHIST_TABLES
SQL0104N  An unexpected token "END-OF-STATEMENT" was found following
"<identifier>".  Expected tokens may include:  "REMOTE".  SQLSTATE=42601

can anyone tell me why?
I do know the files were generated on a UNIX box and I am now loading into w2k machine.
need answer ASAP thus the 500 points
0
Comment
Question by:strongs120
9 Comments
 
LVL 13

Accepted Solution

by:
ghp7000 earned 250 total points
ID: 11725582
create into wont work, you can use insert or replace
0
 
LVL 4

Assisted Solution

by:bondtrader
bondtrader earned 250 total points
ID: 12075849
hmmm, why won't create into work, ghp7000?  I think I do this all of the time!

strongs120:  put your load statement into a file, put a semi-colon at the end of the statement and invoke it from a db2 command window like this:  db2 -tvf yourfilename...you'll need to be connected to the database before you run it though...

Hope this helps

0
 
LVL 13

Expert Comment

by:ghp7000
ID: 12089059
0
Master Your Team's Linux and Cloud Stack!

The average business loses $13.5M per year to ineffective training (per 1,000 employees). Keep ahead of the competition and combine in-person quality with online cost and flexibility by training with Linux Academy.

 
LVL 4

Expert Comment

by:bondtrader
ID: 12101787
ahhh, I didn't see any reference to using 7.2 >> v8...I must not be awake today  ;-)
0
 
LVL 1

Author Comment

by:strongs120
ID: 12102794
There wasn't any reference to any version... sorry about that.
It is version 8.1.6 UDB / windows.
I will try bondtrader's suggestion and follow-up.
0
 

Expert Comment

by:ratna1251
ID: 24924517
what file i want to send them
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Recursive SQL in UDB/LUW (you can use 'recursive' and 'SQL' in the same sentence) A growing number of database queries lend themselves to recursive solutions.  It's not always easy to spot when recursion is called for, especially for people una…
Recursive SQL in UDB/LUW (it really isn't that hard to do) Recursive SQL is most often used to convert columns to rows or rows to columns.  A previous article described the process of converting rows to columns.  This article will build off of th…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…

792 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question