PEPPLER.ORG
Michael Peppler
Sybase Consulting
Menu
Home
Sybase on Linux
Install Guide for Sybase on Linux
General Sybase Resources
General Perl Resources
Freeware
Sybperl
Sybase::Simple
DBD::Sybase
BCP Tool
Bug Tracker
Mailing List Archive
Downloads Directory
FAQs
Sybase on Linux FAQ
Sybperl FAQ
Personal
Michael Peppler's resume

sybperl-l Archive

Up    Prev    Next    

From: "Stern, Meir" <Meir dot Stern at gs dot com>
Subject: RE: Error handling ...
Date: Sep 30 1999 6:49PM

Hi.
 I would also like to know the syntax on how to check for a erroneous or
positive return code 
I think in ct-sql it would be the RC attribute however how do I call it if
the ct_sql statement already returns a value? Thanks in advance for your
help

Meir Stern
Dept: User Support Engineering
Tel: 71727
Email: meir.stern@ny.email.gs.com



-----Original Message-----
From: Manjeet Kalsi [mailto:manjeet.kalsi@prudential.com]
Sent: Thursday, September 30, 1999 10:18 AM
To: SybPerl Discussion List
Subject: Error handling ...



Gurrus,

I am prettymuch new to perl/sybper. Can someone explain me with example ,
how to
handle
error codes returned from an isql. Like for eg. if I have script which needs
a
database name
to be passed as a parameter and the database name passed is not correct due
to
typo error,
how can I trap the isql error. Is it possible in korn shell also ?

Thanks for your inputs.

Manjeet