Jenny Zhang wrote:
I am trying to automate my dbm jobs.

I used the perl module SAP::DBTech::dbm

The example on page (http://www.sapdb.org/7.4/testdbm.pl.html) works.

The problem is if I try to logon to an existing database mydb using:
my $session = new DBM('localhost', 'mydb', 'dbm','dbm');
It complains that username/password is wrong.

If I try to logon and create a database using:
$session = new DBM('localhost', '', '/opt/sapdb/depend74', 'dbm', 'dbm')
it complains that number of parameters is wrong.

Also, where can I get the source code for dbmcperl?

Thanks in advance,



see http://www.sapdb.org/7.4/dbmPerl.html#DBM_constructor: to use an existing database, use new DBM('localhost', 'mydb', '', "$dbmname,$dbmpwd"); to use a specific installation (e.g. to create a new database): new DBM('localhost', '', '/opt/sapdb/depend74')

> Also, where can I get the source code for dbmcperl?

The main module is sys/src/cn/vcn16.c and the target is 'imf dbmperl'.

Daniel Dittmar

--
Daniel Dittmar
SAP DB, SAP Labs Berlin
[EMAIL PROTECTED]
http://www.sapdb.org


_______________________________________________ sapdb.general mailing list [EMAIL PROTECTED] http://listserv.sap.com/mailman/listinfo/sapdb.general

Reply via email to