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 with Unix Scripting

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 06-20-07, 03:01
skyineyes skyineyes is offline
Registered User
 
Join Date: Jun 2007
Posts: 4
DB2 with Unix Scripting

I need shell script code for the following

1. Read syscat.columns after connecting to DB2 using SQL cursor
2. Read the output of the previous SQL command in the shell script
3. Perform insertions and deletions in the output of step 1

Thanks
Reply With Quote
  #2 (permalink)  
Old 06-20-07, 11:22
guyprzytula guyprzytula is offline
Registered User
 
Join Date: Jun 2006
Posts: 471
see the update on different thread from yourself
after the select before the done you can insert/delete.. any operation with the retrieved variables from syscat..
__________________
Best Regards, Guy Przytula
DB2 UDB LUW certified V6/7/8
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