Example of Calling the Loader with Perl Script
Start
a database session with the Loader,
Log on to the database instance,
Log off
# Reference to the Perl Library
# -------------------------------
use SAP::DBTECH::loader;
# Parse the call arguments
# --------------------------
$user_name = $ARGV[0];
$password = $ARGV[1];
$database_name = $ARGV[2];
$data_path = $ARGV[3];
$server_node = "localhost";
# Create a database session for the Loader
# -------------------------------------------
$session = loader::Loader ($server_node, $database_name);
# Log on to the database instance
# --------------------------------
$session->cmd("use user $user_name $password;");
# Log off
# --------
undef $session