If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

 
Go Back  dBforums > Database Server Software > DB2 > DB2 Import

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-28-06, 12:21
sackerdj sackerdj is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
DB2 Import

I'm importing data from SQL Server to DB2 on a Linux box using the IMPORT statement and using the DEL file format. It works beautifully.

When I issue the same IMPORT statement against DB2 on z/OS it gives me

SQL1325N The remote database environment does not support the command or one of the command options.

Is the DEL file format not supported on DB2 for z/OS? If not, how does one convert a ASC output from SQL Server to IXF format? Is there any other way to move data between SQL Server and DB2? I have tried ODBC / OLEDB connections but haven't been successful.

TIA.
Reply With Quote
  #2 (permalink)  
Old 07-28-06, 13:00
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
AFAIK, DB2 for z/OS does support the DEL format in its LOAD utility. (There is no IMPORT utility.)
Did you check the syntax for LOAD? See http://publibz.boulder.ibm.com/cgi-b...20040209165609 (for DB2 v8) or http://publibz.boulder.ibm.com/cgi-b...20030507154051 (for DB2 v7).
Make sure to specify (at least) the options "FORMAT DELIMITED" and "ASCII".
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #3 (permalink)  
Old 07-28-06, 14:04
przytula_guy przytula_guy is offline
Registered User
 
Join Date: Apr 2006
Location: Belgium
Posts: 1,159
import

your problem is that import over drda only supports ixf format and not del..
what peter says : bring the file to mvs and start the import locally and not over drda.
__________________
Best Regards, Guy Przytula
Database Software Consultant
DB2 UDB LUW Certified V7-V8-V9-V9.7 DB Admin - Dprop..
Information Server Datastage Certified
http://www.infocura.be
Reply With Quote
  #4 (permalink)  
Old 07-28-06, 14:07
sackerdj sackerdj is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
DB2 Import

I'm using the following statement on the Linux box to import and it works like a charm, but when I execute it on z/OS it throws that error.

Import from D:\affiliations.csv of del MODIFIED BY COLDEL| insert_update into schema.table_name

Any ideas?

I will look into the LOAD utility.

TIA
Reply With Quote
  #5 (permalink)  
Old 07-28-06, 14:23
sackerdj sackerdj is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
Przytula Guy,

based on what you posted...the question I have is does the LOAD utility support the DEL file format to import over DRDA?

I need to move data from SQL Server to DB2-are there any other options that I can avail of to do this?
TIA
Reply With Quote
  #6 (permalink)  
Old 07-31-06, 09:37
sackerdj sackerdj is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
DB2 Import

This is what I got on the LOAD utility...

The load utility does not fire triggers, and does not perform referential or table constraints checking. The data being loaded must be local to the server (unlike import and export, which support the passing of data from the client).

We will need to fire triggers after the data is imported.
Reply With Quote
  #7 (permalink)  
Old 07-31-06, 10:18
Peter.Vanroose Peter.Vanroose is offline
Registered User
 
Join Date: Sep 2004
Location: Belgium
Posts: 1,079
Quote:
Originally Posted by sackerdj
The load utility does not fire triggers
That's right. Referential constraint checking is to performed with the CHECK DATA utility, so that's no problem, but the triggers cannot be run "automatically" afterwards.

The only other alternative that I see, apart from converting to IXF, is "converting" the data to SQL INSERT statements (which, btw, is essentially what IMPORT over DRDA is doing).
__________________
--_Peter Vanroose,
__IBM Certified Database Administrator, DB2 9 for z/OS
__IBM Certified Application Developer
__ABIS Training and Consulting
__http://www.abis.be/
Reply With Quote
  #8 (permalink)  
Old 07-31-06, 10:31
sackerdj sackerdj is offline
Registered User
 
Join Date: Feb 2002
Posts: 8
DB2 Import

Is it possible (and simple) to convert the data in to the IXF format?

Is it possible to get data in a IXF format from SQL Server?
Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On