Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups 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 Multi row fetch - "for read only... Nileshkul DB2 3 Sun Aug 14, 2016 12:52 am
No new posts Symbolic Parameters in SYSIN DD state... madishpa DFSORT/ICETOOL 3 Mon Jun 27, 2016 6:23 pm
No new posts JCL to fetch schedule status from act... parasmalik20 CA Products 1 Thu Jun 02, 2016 7:11 pm
No new posts Extracting Information from DD Statem... Charles Wolters All Other Mainframe Topics 7 Wed Apr 13, 2016 10:21 pm
No new posts ABEND due to FETCH FAILED jackzhang75 ABENDS & Debugging 17 Thu Mar 10, 2016 3:08 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us