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 > SYSPROC.ADMIN_CMD -- Export

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-19-10, 11:02
zinkjo zinkjo is offline
Registered User
 
Join Date: Jan 2004
Posts: 9
SYSPROC.ADMIN_CMD -- Export

I'm trying to run the statement below. I would like to eventually incorporate into a stored procedure.

CALL SYSPROC.ADMIN_CMD ('EXPORT to "c:\temp\myexport.del" OF del MESSAGES on server select * from stgarchv.stg_purge_sql_list')

The command runs but i get the error below:

SQL0965W There is no message text corresponding to SQL warning "20397" in the message file on this workstation. The warning was returned from module "SQLUEFOP" with original tokens "SYSPROC.ADMIN_CMD SQL3001 ".


Any Ideas what i'm doing wrong?
Reply With Quote
  #2 (permalink)  
Old 05-19-10, 14:28
blazer789 blazer789 is offline
Registered User
 
Join Date: Jun 2009
Posts: 221
CALL SYSPROC.ADMIN_CMD ('EXPORT to "c:\temp\myexport.del" OF del MESSAGES c:\temp\messages.txt select * from stgarchv.stg_purge_sql_list')
Reply With Quote
  #3 (permalink)  
Old 05-19-10, 14:43
ARWinner ARWinner is offline
Registered User
 
Join Date: Jan 2003
Posts: 3,575
Quote:
Originally Posted by blazer789 View Post
CALL SYSPROC.ADMIN_CMD ('EXPORT to "c:\temp\myexport.del" OF del MESSAGES c:\temp\messages.txt select * from stgarchv.stg_purge_sql_list')
The export statement is different when used with the SYSPROC.ADMIN_CMD:

IBM DB2 9.5 Information Center for Linux, UNIX, and Windows

The statement by the original poster is correct providing the DB2 server is on Windows.

The call will return a result set. One of the columns is a query to run to retrieve the messages. Run that to see what they are.

Andy
Reply With Quote
  #4 (permalink)  
Old 05-21-10, 13:08
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
the file is exported to the sever and NOT client.
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
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