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 

-803 SQLCODE - how to programatically obtain indexspace-name

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


Joined: 01 Nov 2004
Posts: 23
Topics: 6
Location: NJ

PostPosted: Wed Mar 22, 2006 1:55 pm    Post subject: -803 SQLCODE - how to programatically obtain indexspace-name Reply with quote

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
View user's profile Send private message
CZerfas
Intermediate


Joined: 31 Jan 2003
Posts: 211
Topics: 8

PostPosted: Thu Mar 23, 2006 10:05 am    Post subject: Reply with quote

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
View user's profile Send private message
Manas Biswal
Intermediate


Joined: 29 Nov 2002
Posts: 382
Topics: 27
Location: Chennai, India

PostPosted: Thu Mar 23, 2006 10:09 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Yahoo Messenger
bstillwa
Beginner


Joined: 01 Nov 2004
Posts: 23
Topics: 6
Location: NJ

PostPosted: Thu Mar 23, 2006 10:16 am    Post subject: Thanks for the info Reply with quote

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
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