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

Return statement 100 in SQL and Fetch statement


IBM Mainframe Forums -> Mainframe Interview Questions
Post new topic   Reply to topic
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> Mainframe Interview Questions

 


Similar Topics
Topic Forum Replies
No new posts Return codes-Normal & Abnormal te... JCL & VSAM 7
No new posts Fetch data from programs execute (dat... DB2 3
No new posts VSAM return code 23 - for a Random read COBOL Programming 4
No new posts Code Multi Row fetch in PL1 program PL/I & Assembler 1
No new posts Need to fetch data from so many DB2 t... DB2 9
Search our Forums:

Back to Top