Change data source types sample
This script changes a source file. It specifies the new
file type (Excel) and the new file (Products.xls), and saves the model.
OpenPy "model.pyj" DataSourceUpdate
"Products (CSV)" SourceType ExcelCrossTab Source
"Products.xls" SavePy "model.pyj"