Connecting Tech Pros Worldwide Forums | Help | Site Map

DB2 Store Procedure Using Fetch Cursor

Newbie
 
Join Date: Jan 2008
Posts: 1
#1: Feb 8 '08
hi,
can anybody send me a exampale of script of DB2 (AS/400) Store Procedure using Declare/Open/Fetch Cursor
thanks

sakumar9's Avatar
Expert
 
Join Date: Jan 2008
Location: Bangalore
Posts: 127
#2: Feb 11 '08

re: DB2 Store Procedure Using Fetch Cursor


Quote:

Originally Posted by humnova

hi,
can anybody send me a exampale of script of DB2 (AS/400) Store Procedure using Declare/Open/Fetch Cursor
thanks


You can refer to samples present in SQLLIB/samples/sqlproc. In this directory, you will find many SPs that uses cursors and FETCH SELECTS.

Regards
-- Sanjay
Reply