Robert wrote:
Yes, I have AS400 client installed and I can use all the DB2 libraries using Excel. When dbish after installing ODBC I see all those DB2 databases.
I am testing this simple code using ODBC which is failing. So, is it possible to connect to DB2 using ODBC if we have client piece installed?
#!C:\perl\ActivePerl\Perl\bin\perl -w
DBD::ODBC
$dbh = DBI->connect('dbi:ODBC:DB1,
'test,
'test',
);
$dbh->disconnect();

As far as I can see, at least the quotes are not matched inside the DBI-connect() if you copy and pasted here.


Best

Bao

C:\perlwork\perf>perl test.pl
panic: unexpected optree near method call at test.pl line 8, near ");"
Execution of test.pl aborted due to compilation errors.


"Herbold, John W." <[EMAIL PROTECTED]> wrote: Do you have a DB2 ODBC client installed like DB2 Connect?

Thanks,

John W. Herbold Jr.
IS Specialist/DBA






Reply via email to