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

What is SQLCODE=-3196?

Hi all,

I am writing a Java code for importing data to DB2. The following
lines are the code.

......
CallableStatement stmt = _dbConnection.prepareCall("CALL
SYSPROC.ADMIN_CMD(?)");
sql = "IMPORT FROM \"c:/data.tbl\" OF DEL MODIFIED BY COLDEL0x09
METHOD P (1, 2) " +
"INSERT INTO MyTable (ID, NAME) ";
stmt.setString(1, sql);
stmt.executeUpdate();
.....

The above codes will raise the following DB2 SQL Error

DB2 SQL Error: SQLCODE=-3196, SQLSTATE= , SQLERRMC=null,
DRIVER=3.50.152

I have tried to search what the error code means. I could not find the
information on SQLCODE=-3196. Do you know what it means?

Thanks
Erwin

Jun 27 '08 #1
2 7706
Erwin Leonardi wrote:
Hi all,

I am writing a Java code for importing data to DB2. The following
lines are the code.

.....
CallableStatement stmt = _dbConnection.prepareCall("CALL
SYSPROC.ADMIN_CMD(?)");
sql = "IMPORT FROM \"c:/data.tbl\" OF DEL MODIFIED BY COLDEL0x09
METHOD P (1, 2) " +
"INSERT INTO MyTable (ID, NAME) ";
stmt.setString(1, sql);
stmt.executeUpdate();
....

The above codes will raise the following DB2 SQL Error

DB2 SQL Error: SQLCODE=-3196, SQLSTATE= , SQLERRMC=null,
DRIVER=3.50.152

I have tried to search what the error code means. I could not find the
information on SQLCODE=-3196. Do you know what it means?

Thanks
Erwin
DB2 is your friend (and also authoritative authority) - just ask the
question:

D:\>db2 ? sql3196
SQL3196N The input file was not found.

Explanation:

The source file to be loaded into a database could not be found in the
path indicated by the datafile parameter.

The command cannot be processed.

User response:

Verify that the input file does exist and that the path to it is
correct.

Jan M. Nelken
Jun 27 '08 #2
Hi!

If you want to use IMPRO from ADMIN_CMD the file from where you import
has to be located on the same machine as your instance.

Best regards,
Kovi

Erwin Leonardi pravi:
Hi all,

I am writing a Java code for importing data to DB2. The following
lines are the code.

.....
CallableStatement stmt = _dbConnection.prepareCall("CALL
SYSPROC.ADMIN_CMD(?)");
sql = "IMPORT FROM \"c:/data.tbl\" OF DEL MODIFIED BY COLDEL0x09
METHOD P (1, 2) " +
"INSERT INTO MyTable (ID, NAME) ";
stmt.setString(1, sql);
stmt.executeUpdate();
....

The above codes will raise the following DB2 SQL Error

DB2 SQL Error: SQLCODE=-3196, SQLSTATE= , SQLERRMC=null,
DRIVER=3.50.152

I have tried to search what the error code means. I could not find the
information on SQLCODE=-3196. Do you know what it means?

Thanks
Erwin
--
____________________________
|http://kovica.blogspot.com|
-----------------------------~-~-~-~-~-~-~-~-~-~-
| In A World Without Fences Who Needs Gates? |
| Experience Linux. |
-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-~-
Jun 27 '08 #3

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

Similar topics

1
by: PCK | last post by:
Hello, I am using an UPDATE statement through java program. It works fine on windows. But When I moved the same code over to OS/390, I get the following error java.sql.SQLException:...
5
by: Jean-Marc Blaise | last post by:
Dear all, Could you explain why some SQL messages do not possess a SQLSTATE ? Why not transmitting the SQLSTATE of the original <sqlcode>, for example if you get a -911 on a RUNSTATS ? ...
1
by: Kim Bundgaard | last post by:
Hi I got a sqlcode=-843 (SQL0843N) in my PL/I-program running against DB2 z/OS V7, when I issue RELEASE CURRENT. I can't see why I get this error - and I can't reproduce it. My program only...
3
by: JDPope | last post by:
I have a situation which I cannot get a good lead on how to resolve. One of the applications I support uses the Hibernate software to generate SQL. The app is JAVA with JDBC. In testing the users...
1
by: efiryago | last post by:
I have about 200 tables in a DB2 V8.1.4 LUW application schema. There is a third party java appllication that accesses this schema. It started failing and relevant entries in db2diag.log have this:...
15
by: Twan Kennis | last post by:
Hi, I have a DB2 database on the IBM iSeries platform, on which I created several Stored Procedures with the SQLCODE as a return-parameter. These Stored Procedures are called from a Windows...
5
by: misterutterbag | last post by:
Stack trace below. Only happens in WebSphere 6.0. DB2 v 8.2. FP12. Only against 1 database. I have other databases in this database instance, but they don't seem to have this problem. ...
10
by: scoonie999 | last post by:
I'm having a problem that I can't seem to find any solution for online. I'm using a cursor in a cobol program to fetch some data. I know for a fact that the select should return 2 rows. The...
22
by: Sri | last post by:
All Recenetly our shop migrated to DB2 V8 from V7. We are in IBM System Level: z/OS 1.6.1 @ RSU 0702. Processor : IBM 2064-1C7 (z/900) # 1B89 Mode: 64-bit One of my application is facing...
2
by: APP1MVF | last post by:
Question: I come from a COBOL/DB2 environment so I am use to being able to display the current SQLSTATE or SQLCODE following the issuing of a DB2 command, now I have move over to a LINUX/DB2 shell...
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: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
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,...
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
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...
0
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,...

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.