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 

Sql error code -811 Behavior

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


Joined: 09 May 2008
Posts: 2
Topics: 2

PostPosted: Thu Apr 30, 2009 3:49 am    Post subject: Sql error code -811 Behavior Reply with quote

hi,

In a COBOL/DB2 environment, Does the host variables have data if the Sql query returns the error code of -811.

Thanks,
Anil
Back to top
View user's profile Send private message
dbzTHEdinosauer
Supermod


Joined: 20 Oct 2006
Posts: 1411
Topics: 26
Location: germany

PostPosted: Thu Apr 30, 2009 6:11 am    Post subject: Reply with quote

depends on your version of db2.
vsn 6 and below will populate.
vsn 7 and above will not guarantee population of host variables.

vsn7 and above, you need to use the FETCH FIRST ROW ONLY
to guarantee population of host variables.
V7 does not allow you to code ORDER BY in a singleton select.
_________________
Dick Brenholtz
American living in Varel, Germany
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