You can call the Loader by processing a Python script.
The following Python modules are delivered with the Loader program, and allow you to create Python scripts that can be processed by the Loader:
· Windows: loader.pyd
· UNIX: loadermodule.so
· HP: loadermodule.sl
These are the modules you need to use the Loader functions. You do not need a complete PYTHON installation.
If you already have a PYTHON installation, add %INSTROOT%\misc to the PYTHONPATH variable.
The Loader supports PYTHON as of version 1.5.2.
x_python <python_script_file> [<argument>...]
You have the option of specifying arguments <argument>.
Frequently used arguments:
<user_name> |
User
name (Database
User) |
<database_name> |
|
<data_path> |
Directory in which the data file is stored |
<server_node> |
Name of the server on which the Loader is located |
X_python sample samplename secret TST C:\data\sapdb
The Python script sample is called. The logon to the Loader is performed for the user samplenameon the database instance TST. The data file is in the directory C:\data\sapdb.
The following section contains examples of background files in Python. Their equivalents in the Perl script language are also provided for comparison.
Example 1 |
||
Example. 2 |
||
Example no. 3 |
||
Example no. 4 |
||
Example no. 5 |