cmd (cmd_string)
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.
The result of the Loader command is returned.
If the Loader Server program returns an error, an exception of the LoaderError class is triggered.
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)