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 > db2load

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 02-07-05, 12:53
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
db2load

Does anyone have the experience of using sysproc.db2load stored procedure ? I don't seem to find any documentation of the procedure ...

BTW, I'm on V8.1 FP 7a (ie V8.2) on AIX and W2K ..

Cheers
Sathyaram
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #2 (permalink)  
Old 02-07-05, 12:55
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
I have tried using the procedure to load and it seems to work OK ... Any comments ??

Cheers
sathyaram

call db2load(8,'DECLARE mycurs CURSOR FOR select * from load_source','load from mycurs of cursor insert into load_target nonrecoverable',?,'',?,?,?,?,?,?,?,?,?,'')

Value of output parameters
--------------------------
Parameter Name : SQLCODE
Parameter Value : 0

Parameter Name : SQLMESSAGE
Parameter Value :

Parameter Name : ROWS_READ
Parameter Value : 4

Parameter Name : ROWS_SKIPPED
Parameter Value : 0

Parameter Name : ROWS_LOADED
Parameter Value : 4

Parameter Name : ROWS_REJECTED
Parameter Value : 0

Parameter Name : ROWS_DELETED
Parameter Value : 0

Parameter Name : ROWS_COMMITTED
Parameter Value : 4

Parameter Name : ROWS_PART_READ
Parameter Value : 0

Parameter Name : ROWS_PART_REJECTED
Parameter Value : 0

Parameter Name : ROWS_PART_PARTITIONED
Parameter Value : 0

Parameter Name : MPP_LOAD_SUMMARY
Parameter Value :

Return Status = 0
__________________
Visit the new-look IDUG Website , register to gain access to the excellent content.
Reply With Quote
  #3 (permalink)  
Old 05-20-09, 23:50
Shaffman Shaffman is offline
Registered User
 
Join Date: May 2009
Posts: 1
Note the SYSPROC.DB2LOAD stored procedure is no longer supported in v9. It is not thread-safe and has other deficiencies.
In v9+ use the ADMIN_CMD stored procedure instead.

DB2 Database for Linux, UNIX, and Windows
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