473,773 Members | 2,277 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Load failure; SQL0104N

1 New Member
Excuted the statement through a SSH connection:

db2 load from <filename.ixf > of ixf messages /database/stage/
acct_news_asc.t xt insert into userid.acct_new s_asc


And it worked fine.


Ran the same command through perl and received an error:
SQLErr: [IBM][CLI Driver][DB2/LINUXX8664] SQL0104N An unexpected
token "/database/stage/acct_news_asc.t xt" was found following
"MESSAGES". Expected tokens may include: "ON". SQLSTATE=42601
(-104)(42601)


Error while executing import on acct_news_asc.


Any suggestions would be helpful...
Nov 14 '07 #1
1 2540
docdiesel
297 Recognized Expert Contributor
Hi,

could you post the lines of your perl script which prepare and then do the db2 command? That would help.

Anyway, my first guess is that perl is interpreting something in the db2 command string before giving it to the shell and therefore mixes it up - assuming that you are using something like

Expand|Select|Wrap|Line Numbers
  1. $output = ` db2 load from ... ` ;
In situations like these I usually do a print " whatever cmd I try to do" instead to see what's left over of my command string after perl ate it.

Regards, Bernd

P.S.: Once you find it and whatever the solution looks like, please post it here. ThanX!!
Nov 14 '07 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

4
9695
by: Breck Carter | last post by:
Why do I get SQL0104N in UDB 8.1 for Windows Command Center - Interactive, when I copy-paste-and-execute this function from the docs? FWIW I have % defined as the statement terminator, but appending a % to the input just gives a different error: SQL0007N The character "%" following "BEGIN-OF-STATEMENT" is not valid. Here's the function from the docs:
2
5754
by: Mark McNary via DBMonster.com | last post by:
I have a developer getting a SQL0104N on an insert statement. He is inserting a list of values into a table and instead of putting 'NULL' into the statement, the program just puts a placeholder comma. He is getting the following error: SQL ERROR -> SQL0104N An unexpected token ",," was found following "000000,0.000000,0,0,". Expected tokens may include: "<rvc_element>". SQLSTATE=42601 The two commas in the unexpected token field...
5
2168
by: hikums | last post by:
Begin Atomic Declare a integer; Set a=(select count(1) from claims.table1); if a<>0 then import into c:\tmptyfile.txt of del replace into claims.table1; end if; End!
3
7201
by: db2udbgirl | last post by:
Env: DB2 UDB 8.2, AIX 5.3 While trying to load data (73 Million rows, Medium size table uses 4K tablespace) into a table using cursor it fails with "SQL0964C The transaction log for the database is full. SQLSTATE=57011" But I felt that Load utility wont log any acvitities on the database. Here it what I tried to do db2 "declare c1 cursor for select CAST(PARTITIONING_NBR AS CHAR(10)), VEH_IDENT_NBR, OPTN_CD, VIN_TYPE_CD,...
10
10901
by: technocrat | last post by:
Hi, I am trying to declare and cursor and thn load from that cursor into another table. Since I have almost 4 million records, I cant do it without the cursor which reduces the time by almost 1/10th. I tried to create a sql statement for "load from cursor cur insert into table name" using java stored procedure, but this isnt recognised by sql since load isnt a sql keyword. So whats the solution to this. I have to do it programatically...
19
2289
by: natG | last post by:
On a warehouse app, our Java clients constantly load/insert rows into the db. I would like to throttle these inserts (1.5 million rows per hr) from the Java app, based on current 'busy state' of the server. It would be nice if I can get the server CPU utilization (and other key factors) from db2 via jdbc. However, it needs to be low cost, since it would likely run every x seconds. System: db2 v 9.1 64bit on Centos 4.3 64 bit. Thank...
0
1716
by: ALLYWEIR | last post by:
Hi, I am trying to create a partitoned table using the following:- CREATE TABLE ORDERS(ID INT, SHIPDATE DATE) PARTITION BY RANGE(SHIPDATE) ( STARTING '1/1/2006' ENDING '12/31/2006' EVERY 3 MONTHS );
4
4394
by: Justin | last post by:
Excuted the statement through a SSH connection: db2 import from <filename.ixfof ixf messages /database/stage/ acct_news_asc.txt insert into userid.acct_news_asc And it worked fine. Ran the same command through perl and received an error: SQLErr: SQL0104N An unexpected token "/database/stage/acct_news_asc.txt" was found following
1
7268
by: Justin | last post by:
We had a load that failed. Now we have a pending load. When executing load terminate, we receive the following error: db2 load terminate SQL0104N An unexpected token "terminate" was found following "LOAD". Expected tokens may include: "QUERY". SQLSTATE=42601 db2 query load terminate DB21034E The command was processed as an SQL statement because it was
0
9621
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, 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...
0
9454
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
10264
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
10039
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
8937
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, 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...
0
5484
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4012
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
2
3610
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2852
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.