Perl: RepMan Class 

Constructor: RepMan (<server_node>, <database_name>)

Brief Description

Creates a connection to the REPM Server

If the server node name and name of the database instance are specified, the system assumes that the database instance, data, and REPM Server are located on a remote server.

If only the name of the database instance is specified, the system assumes that the database instance, data, and REPM Server are located on the local server. The suitable REPM Server is determined from the release of the specified database instance.

If neither the server node name nor the name of the database instance is specified, the system establishes a connection to the newest REPM Server on the local system.

The session is closed again when the object is deleted with undef $session.

$session = RepMan ('p12345', 'mydb')

Method: cmd (<commandstring>)

Brief Description

An SQL statement or REPM Server command is executed.

The script is terminated if the command fails.

$output = $session->cmd ("DATALOAD TABLE customer".

                        "cno       1-4".
                        "surname  6-12".
                        "zip       14-18".
                        "place     20-31".
                        "INFILE '$data_path\customer.dat' ")

Method: sql (<commandstring>)

Brief Description

An SQL or REPM Server command is executed.

Script execution is terminated when an REPM Server command fails.

A return code is output when an SQL statement fails.

$result = $session->sql ('EXISTS TABLE MYTABLE')