Hi Dana,

> my $dbh=DBI->connect("dbi:DB2:$source", $user, $pass, {RaiseError => 1
> });
Try:
my $dbh = DBI->connect( "dbi:DB2:$source", $user, $pass,
       {RaiseError => 1, PrintError => 1, AutoCommit => 1} ) or
       die "Unable to connect: " . $DBI::errstr . "\n";
> 
> my $sth = $dbh->prepare)"SELECT * FROM ADAACD");
-------------------------^
Parens wrong way round:
my $sel = $dbh->prepare("SELECT * FROM ADAACD");

Don't forget to add:
use strict;
This will assist you with error messages.

Hth,

Shaun
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.408 / Virus Database: 230 - Release Date: 25/10/2002


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to