| View previous topic :: View next topic |
| Author |
Message |
kamineni.anil Beginner
Joined: 09 May 2008 Posts: 2 Topics: 2
|
Posted: Thu Apr 30, 2009 3:49 am Post subject: Sql error code -811 Behavior |
|
|
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 |
|
 |
dbzTHEdinosauer Supermod
Joined: 20 Oct 2006 Posts: 1411 Topics: 26 Location: germany
|
Posted: Thu Apr 30, 2009 6:11 am Post subject: |
|
|
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 |
|
 |
|
|
|