It is possible to create and load applications from the command line by running a batch file. TheĀ WhereScape RED Application directory contains an example batch fileĀ WSL_Application_Create_Restore_Point_and_Load.bat for creating and loading.
If you right-click this file and select Edit you will see the steps outlined, as well as the details on the options available.
The first step creates a restore point application (R) based on objects about to be loaded. This process calls the command line functionality of RED and creates the application file.
The second step loads an application (A) into a test WhereScape RED repository. It uses an XML Options File to specify various options, calls the command line automation functionality of Setup Administrator, and loads the application (A). Ensure that you have already created and properly defined the XML Options File. Refer to XML Options File for Application Loads for details.
The WhereScape RED Application directory contains example XML files:
WSL_Application_Load_SQL.xml for SQL ServerThe tags in the XML Options File need to be edited because the login/connection details, etc. need to be set. Refer to XML Options File for Application Loads for details.
The Batch Application Create options and the Batch Application Load options (described below) are listed at the end of the batch file. The values for these variables also need to be customized before running this file.
The process typically involves the following steps:
The following options are available on RED to create applications.
Option | Description |
|---|---|
| /BA | Select batch application create. |
| /U | ODBC user name. |
| /P | ODBC password. |
| /C | ODBC DSN name. |
| /A | DSN Architecture |
| /M | meta database for Teradata logon. |
| /N | RED User name. |
| /D | Directory to save application files. |
| /I | New application files identifier. |
| /V | New application files version. |
| /AP | Project name - all objects in a Project; and associated jobs. |
| /AG | Group name - all objects in a Group; and associated jobs. |
| /ALL | All objects - all objects, jobs, and parameters. |
| /RC | Remove connections - drop all connections from the application. |
| /RJ | Remove jobs - drop all jobs from the application. |
| /RP | Remove parameters - drop all parameters from the application. |
| /AF | Absolute application id file name which restores point is being created for. |
If using a trusted connection, the username and password are not necessary.
See RedCli section for details.