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 > Export command on OS 390

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 01-31-08, 12:17
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
Export command on OS 390

I am running the following command on an OS 390 DB2 8.1.0 system.

Code:
db2 -q "export to /export/home/mldwh/bi_addhoc/load_files/RKSATACT.txt OF DEL 
		select * 
		FROM RKSA.RKSATACT 
		WHERE CREATE_TIME between '2007-11-01-00.00.00.000000' and '2007-11-30-00.00.00.000000' WITH UR"
I am getting the following error:

Code:
SQL1325N  The remote database environment does not support the command or one
of the command options.
I have reviewed the sytax online and I cannot see what I am doing wrong. Can anyone point out what I am doing wrong?
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #2 (permalink)  
Old 01-31-08, 14:50
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
The only time I exported a DB2 z/OS table from a DB2 LUW client I used IXF format and it worked ok. I don't know if that is your problem. I would also try it without the UR.

The other issue is to make sure you do a remote bind from the DB2 LUW client of the utilities to the DB2 z/OS server (you will need bind add authority on DB2 z/OS).
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
Reply With Quote
  #3 (permalink)  
Old 01-31-08, 15:15
JDionne JDionne is offline
Registered User
 
Join Date: Aug 2002
Location: Charlotte NC
Posts: 663
Can an IXF file be imported into a SQL Server environment? That is why I was using the DEL file type
__________________
------------
And back to SQL Server....I always find my way home
View my Linkedin profile
Reply With Quote
  #4 (permalink)  
Old 01-31-08, 22:35
Marcus_A Marcus_A is offline
Registered User
 
Join Date: May 2003
Location: USA
Posts: 5,196
Probably not. But you could load it into a DB2 LUW table and then export to DEL.
__________________
M. A. Feldman
IBM Certified DBA on DB2 for Linux, UNIX, and Windows
IBM Certified DBA on DB2 for z/OS and OS/390
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