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
 

 

Return statement 100 in SQL and Fetch statement

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> Mainframe Interview Questions
View previous topic :: :: View next topic  
Author Message
ramesh_21
Warnings : 2

New User


Joined: 17 May 2006
Posts: 3

PostPosted: Thu Jun 01, 2006 5:02 pm    Post subject: Return statement 100 in SQL and Fetch statement
Reply with quote

Hai,

I have executed an SQL stmt and the return code is 100

I have executed FETCH stmt and the return code is 100.

pl. explain the difference between the two cases.

with thanks
sai
Back to top
View user's profile Send private message

Prasanthhere

Active User


Joined: 03 Aug 2005
Posts: 306

PostPosted: Tue Jun 06, 2006 3:11 pm    Post subject: Re: Return statement 100 in SQL and Fetch statement
Reply with quote

Explanation: One of the following conditions occurred:

o No row met the search conditions specified in an UPDATE or DELETE
statement.

o The result of a SELECT INTO statement was an empty table.

o A FETCH statement was executed when the cursor was positioned after
the last row of the result table.

o The result of the subselect of an INSERT statement is empty.

When a SELECT statement is executed using SPUFI, this SQLCODE indicates
normal completion. icon_smile.gif
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 -> Mainframe Interview Questions All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts ON 2 AND EVERY 1 - Statement ??? UmeySan COBOL Programming 2 Tue Jul 25, 2017 1:20 pm
No new posts EXIT or RETURN cvnlynn CLIST & REXX 16 Wed Jul 19, 2017 2:50 am
No new posts Need DB2 query to fetch previous row ! Chandan1993 DB2 10 Sat Jun 03, 2017 10:43 am
No new posts QUESTION: RETURN CHANNEL pahiker CA Products 21 Thu Apr 20, 2017 12:31 am
No new posts JCL to Set Return code based on DB2 S... vinu78 DB2 17 Mon Mar 13, 2017 9:47 pm


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