MVSFORUMS.com Forum Index MVSFORUMS.com
A Community of and for MVS Professionals
 
 FAQFAQ   SearchSearch   Quick Manuals   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sqlcode 100

 
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database
View previous topic :: View next topic  
Author Message
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Tue Feb 22, 2005 12:41 pm    Post subject: sqlcode 100 Reply with quote

Hi all,

we are executing a query through SPUFI and it returns a sqlcode=100 even if there are records returning.

I always thought that a sqlcode=100 was only for 'records not found'.

Why do i get this sqlcode? What does sqlcode=100 mean in this case?

Thanks.
Back to top
View user's profile Send private message
kolusu
Site Admin
Site Admin


Joined: 26 Nov 2002
Posts: 12378
Topics: 75
Location: San Jose

PostPosted: Tue Feb 22, 2005 1:21 pm    Post subject: Reply with quote

Monaco,

Spufi returns this statement after a succesful execuetion of the query. In spufi the DSNE610I denotes the rows retrieved.

for ex:
Code:

DSNE610I NUMBER OF ROWS DISPLAYED IS 5


This will be followed by DSNE616I

Code:

  DSNE616I STATEMENT EXECUTION WAS SUCCESSFUL, SQLCODE IS number

Explanation: This message is written to the output data set following the successful execution of an SQL statement from the input data set. 'number' specifies the SQL return code for the statement.
System Action: Input data set processing is completed, and this message is included in the SPUFI output.


In this SQLCODE = 100, "no data" was found, as the FETCH(spufi select) statement returned no data because the cursor was positioned after the last row of the result table

Hope this helps...

Cheers

Kolusu
_________________
Kolusu
www.linkedin.com/in/kolusu
Back to top
View user's profile Send private message Send e-mail Visit poster's website
monaco
Beginner


Joined: 20 May 2004
Posts: 77
Topics: 31

PostPosted: Wed Feb 23, 2005 11:21 am    Post subject: Reply with quote

Thanks a lot.
It was very useful.

Thanks Kolusu.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic   printer-friendly view    MVSFORUMS.com Forum Index -> Database All times are GMT - 5 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


MVSFORUMS
Powered by phpBB © 2001, 2005 phpBB Group