Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
Can I use FETCH statements on SPUFI in DB2

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
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    Post subject: Can I use FETCH statements on SPUFI in DB2
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    Post subject:
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    Post subject:
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    Post subject: Re: DB2 FETCH Statements
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

Site Director


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

PostPosted: Thu Aug 23, 2007 3:08 am    Post subject:
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    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Fetch Previous month & year in MM... girishb2 DFSORT/ICETOOL 3 Thu Sep 21, 2017 9:54 pm
No new posts PLI %IF statements Pedro PL/I & Assembler 1 Tue Sep 19, 2017 12:06 am
This topic is locked: you cannot edit posts or make replies. Extract all "IF" Statements... Adarsh Damodaran CLIST & REXX 1 Wed Sep 06, 2017 9:28 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts SPUFI -- Joining 3 tables – data in... Sysaron DB2 2 Wed Mar 08, 2017 4:18 am

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us