Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java Databases > Re: Accessing m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 10 Topic 3683 of 3782
Post > Topic >>

Re: Accessing mainframe DB2 in Java.

by zalek <zalekbloom@[EMAIL PROTECTED] > Mar 22, 2008 at 02:28 PM

On Mar 22, 5:14 pm, Arne Vajh=F8j <a...@[EMAIL PROTECTED]
> wrote:
> zalek wrote:
> > I am a mainframe Cobol programmer (yes - Cobol programmers are still
> > around, mostly in caves) and I am writing a java code to access DB2.
> > In a Cobol world after each SQL command we are checking for return
> > conditions like success (sqlcode=3D0), not found (sqlcode =3D +100),
> > duplicates (sqlcode=3D803) and more.
> > How do you check for this conditions in Java?
>
> Usually (possible always) the JDBC driver will throw an SQLException
> if not success.
>
> Arne

Yes - I know - but I would like to know what exactly happen. For
example - if I try to access a table using a variable as a key - I
would like to know "not found conditions" occurred to display correct
message. If database was down - I would like to know it too. Is there
a way in a java world to find it?

Thanks,

Zalek
 




 10 Posts in Topic:
Accessing mainframe DB2 in Java.
zalek <zalekbloom@[EMA  2008-03-22 14:12:06 
Re: Accessing mainframe DB2 in Java.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-22 17:14:40 
Re: Accessing mainframe DB2 in Java.
zalek <zalekbloom@[EMA  2008-03-22 14:28:01 
Re: Accessing mainframe DB2 in Java.
=?ISO-8859-1?Q?Arne_Vajh=  2008-03-22 19:02:25 
Re: Accessing mainframe DB2 in Java.
Mark Space <markspace@  2008-03-22 16:42:58 
Re: Accessing mainframe DB2 in Java.
Mark Space <markspace@  2008-03-22 14:28:25 
Re: Accessing mainframe DB2 in Java.
Mark Space <markspace@  2008-03-22 21:36:42 
Re: Accessing mainframe DB2 in Java.
i.dont.need@[EMAIL PROTEC  2008-03-23 20:22:09 
Re: Accessing mainframe DB2 in Java.
Mickey <mickeyb@[EMAIL  2008-03-25 11:14:51 
Re: Accessing mainframe DB2 in Java.
Alex.From.Ohio.Java@[EMAI  2008-03-25 11:45:00 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 15:44:45 CDT 2008.