Python: Example No. 1 

Build a Python module with reference to the SAP DB Python Libraries,
parse the call arguments:

 

# Reference to Python Libraries

# ----------------------------

import sys

import repman

 

# Parse the call arguments

# --------------------------

user = sys.argv [1]

pwd = sys.argv [2]

dbname = sys.argv [3]

data_path = sys.argv[4]

host = ''