HowTo: Perl


Prerequisites


All the files required to run the examples are contained in the directory $DEP/doc/FirstSteps/Perl.


Accessing SQL using DBD::ODBC

See www.sapdb.org for instructions on how to use DBD::ODBC with SAP DB.


Accessing the DB Manager using the SAP::DBTech::dbm module

Database state
StateSAPDB.pl shows
  • how to connect to the Database Manager
  • how to execute simple commands using the dbmcli syntax
  • how to parse results
  • execute it as
    perl StateSAPDB.py <dbmuser> <password> <dbname> <host>
    The command line arguments are optional, the defaults will access the installed demo database