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 > Stored Procedure output edit

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 03-15-06, 12:42
samvelu samvelu is offline
Registered User
 
Join Date: Mar 2006
Posts: 1
Stored Procedure output edit

Here is what I need help with.

1) I have a stored proc that declares a cursor and pulls a set of records.
2) The stored proc is invoked through CLP (db2 –x call sp > outFile) and the resulting records are stored in the outFile.
3) In addition to storing the records, the invocation also stores the header/Status strings such as: Result set 1, ----------, Return Status = 0
4) I need to know if we could avoid outputting the strings: : Result set 1, ----------, Return Status = 0
5) I have tried –x already and it did not work. I also tried the –w and still have the problem.

Thanks for any help.
Reply With Quote
  #2 (permalink)  
Old 03-15-06, 14:10
sathyaram_s sathyaram_s is offline
Super Moderator
 
Join Date: Aug 2001
Location: UK
Posts: 4,534
AFAIK, it is not possible ... You have to discard those lines - say using a script ..

I wish to be proved wrong!

Cheers
Sathyaram
__________________
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