Portal | IBM Manuals | Downloads | Products | Refer | Info | Programs | JCLs | Forum Rules*| Site Map | Mainframe CD 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index
 
Register
 
IBMMAINFRAMES.com - IBM Mainframe Support Forums Index FAQ Search Memberlist Usergroups Profile Log in to check your private messages Log in
 
What is SQLCA, What is contains

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2
Author Message
karthikuma

Active User


Joined: 29 Mar 2005
Posts: 65

PostPosted: Tue Jun 14, 2005 10:13 am    Post subject: What is SQLCA, What is contains
Reply with quote

hi,

wat is SQLCA?wat are the values it contains.whether in sqlca only sqlcode only exists (or) even the file status,even the cobol error also defined on that sqlca.any one explain me cleasrly.

regards,
kumar.
Back to top
View user's profile Send private message
References
manjunathbhosale

New User


Joined: 18 Mar 2005
Posts: 7
Location: bangalore

PostPosted: Tue Jun 14, 2005 2:14 pm    Post subject:
Reply with quote

hi

The SQL communications area (SQLCA) structure is used by the database manager to return error information to an application program. This structure is updated after every SQL statement issued.

some of SQLCA are
SQLERRM (sql error messages)
SQLWARN (sql warning messages)
SQLSTATE
SQLCODE
SQLCABC (Lenght of sqlca)
etc..
Back to top
View user's profile Send private message
sangiah

Active User


Joined: 10 Jun 2005
Posts: 64

PostPosted: Wed Jun 15, 2005 9:08 am    Post subject: Re: What is SQLCA, What is contains
Reply with quote

For more details.. pls follow the link

http://publib.boulder.ibm.com/infocenter/db2help/index.jsp?topic=/com.ibm.db2.udb.doc/admin/r0002212.htm
Back to top
View user's profile Send private message
dsbhati

New User


Joined: 13 Jun 2005
Posts: 10
Location: india

PostPosted: Mon Jun 20, 2005 12:08 pm    Post subject:
Reply with quote

CAN ANYBODY TELL ME WHAT IS DIFFERENCE B/W SQLCODE AND SQLSTATE??
Back to top
View user's profile Send private message
priyesh.agrawal

Global Moderator


Joined: 28 Mar 2005
Posts: 1509
Location: Chicago, IL

PostPosted: Mon Jun 20, 2005 12:31 pm    Post subject: Re: What is SQLCA, What is contains
Reply with quote

Did you check the link given here....

sqlstate CHAR(5) A return code that indicates the outcome of the most recently executed SQL statement

One more thing....SQLSTATE is a standard set of error messages and warnings in which the first two characters defines the class and the last three defines the subclass of the error.

Regards,

Priyesh.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> DB2 All times are GMT + 6 Hours
Page 1 of 1