Entering content frame

Background documentation cmd Method Locate the document in the library structure

Definition

cmd (cmd_string)

Use

cmd is a method of the Loader class. This method is used to send the Loader command specified under cmd_string or an SQL statement to the Loader Server program.

Result

The result of the Loader command is returned.

If the Loader Server program returns an error, an exception of the LoaderError class is triggered.

Example

To load the customer table from the customer.dat file with the cnr, name, zip, city columns:

session.cmd ("""DATALOAD TABLE customer
                cnr        1-4
                name      6-12
                zip      14-18
                city     20-31
                INFILE '%s\customer.dat' """ %data_path)

 

Leaving content frame