View previous topic :: View next topic |
Author |
Message |
bstillwa Beginner
Joined: 01 Nov 2004 Posts: 23 Topics: 6 Location: NJ
|
Posted: Wed Mar 22, 2006 1:55 pm Post subject: -803 SQLCODE - how to programatically obtain indexspace-name |
|
|
Using z/OS DB2 version 7. When SQLCODE -803 is detected, is there a way to programatically obtain the indexspace-name? I do not see anywhere in SQLCA where this is stored. How/Where does DSNTIAR obtain the indexspace-name to populate into the error text? _________________ Bev. |
|
Back to top |
|
 |
CZerfas Intermediate
Joined: 31 Jan 2003 Posts: 211 Topics: 8
|
Posted: Thu Mar 23, 2006 10:05 am Post subject: |
|
|
Associated with every SQLCODE there is a message text, often including variables naming the objects that are involved in the error. These variables are included in the SQLCA in the field SQLERRMC, separated by X'FF'. DSNTIAR simply mixes the informations together to give you a completed error message.
regards
Christian |
|
Back to top |
|
 |
Manas Biswal Intermediate

Joined: 29 Nov 2002 Posts: 382 Topics: 27 Location: Chennai, India
|
Posted: Thu Mar 23, 2006 10:09 am Post subject: |
|
|
bstillwa,
As far as my knowledge goes, DSNTIAR is just a formatter program that takes the SQLCA as input and formats it to a proper error message. Any information that DSNTIAR displays should be there in SQLCA.
Did you try SQLERRMC to see if it contains the indexspace name.
Regards,
Manas _________________ There is no path to peace. Peace is the path.
- Mahatma Gandhi (1869-1948) |
|
Back to top |
|
 |
bstillwa Beginner
Joined: 01 Nov 2004 Posts: 23 Topics: 6 Location: NJ
|
Posted: Thu Mar 23, 2006 10:16 am Post subject: Thanks for the info |
|
|
I expected this type of info to be documented in the DB2 Developer's Guide, but it was not. Thanks for the explanation. _________________ Bev. |
|
Back to top |
|
 |
|
|