IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Can I use FETCH statements on SPUFI in DB2


IBM Mainframe Forums -> DB2
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
sakthivel_t100
Warnings : 1

New User


Joined: 03 Aug 2007
Posts: 10
Location: chennai

PostPosted: Thu Aug 23, 2007 12:43 am
Reply with quote

Hi All,
Can I use FETCH statements on SPUFI in DB2 ? If possible can you please give me Syntax of the FETCH statemnts ?

Thanks icon_arrow.gif
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Thu Aug 23, 2007 12:56 am
Reply with quote

Hi,

You can't do it man, why you need it all the data would be displayed in the output screen.


Cheers
Ashwin
Back to top
View user's profile Send private message
ashwinreddy

Active User


Joined: 16 Sep 2004
Posts: 106
Location: Hyderabad

PostPosted: Thu Aug 23, 2007 12:59 am
Reply with quote

Hi,

Do you mean the same questions or you have missed anything or was a typo mistake.

Please send us your extact question.

Cheers
Ashwin
Back to top
View user's profile Send private message
Craq Giegerich

Senior Member


Joined: 19 May 2007
Posts: 1512
Location: Virginia, USA

PostPosted: Thu Aug 23, 2007 1:00 am
Reply with quote

sakthivel_t100 wrote:
Hi All,
Can I use FETCH statements on SPUFI in DB2 ? If possible can you please give me Syntax of the FETCH statemnts ?

Thanks icon_arrow.gif


NO, for spufi you use SELECT, Fetch is only used with cursors.
Back to top
View user's profile Send private message
dick scherrer

Moderator Emeritus


Joined: 23 Nov 2006
Posts: 19244
Location: Inside the Matrix

PostPosted: Thu Aug 23, 2007 3:08 am
Reply with quote

Hello,

SPUFI can/will return multiple rows for your SELECT.

In a program, you use a cursor when your SELECT might return more than 1 row.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> DB2

 


Similar Topics
Topic Forum Replies
No new posts DELETE SPUFI DB2 1
No new posts Calling DFSORT from Cobol, using OUTF... DFSORT/ICETOOL 5
No new posts Adding QMF and SPUFI to the ISPF menu DB2 20
No new posts Fetch data from programs execute (dat... DB2 3
No new posts Code Multi Row fetch in PL1 program PL/I & Assembler 1
Search our Forums:

Back to Top