It is possible to create and load applications from the command line by running a bat file. The WhereScape RED Application directory contains an example bat file  WSL_Application_Create_Restore_Point_and_Load.bat for creating and loading.
Right-click this file and select Edit to see the steps outlined, as well as the details about 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 file to specify various options, calls the command line automation functionality of Setup Administrator and loads the application (A).
The WhereScape RED Application directory contains example XML files:

  • WSL_Application_Load_SQL.xml for SQL Server

The tags in the XML file must be edited as the login/connection details, etc. must be correctly defined.
The Batch Application Create options and the Batch Application Load options are listed at the end of the batch file. The values for these variables must also be customized before running the file.

The process typically involves the following steps:

  1. Create an application (A) in RED containing your data warehouse changes.
  2. RUN WSL_Application_Create_Restore_Point_and_Load.bat from the command line; which creates a restore point application (R) and applies application (A) to a test WhereScape RED repository.
  3. If the changes are incorrect, they can be undone by loading the restore point application (R).

Batch Application CREATE Options

The following options are available in RED to create applications.

Option

Description

/BASelect batch application create.
/UODBC user name.
/PODBC password.
/CODBC DSN name.
/ADSN architecture
/NRED User name.
/DDirectory to save application files.
/INew application files identifier.
/VNew application files version.
/APProject name - all objects in a Project; and associated jobs.
/AGGroup name - all objects in a Group; and associated jobs.
/ALLAll objects - all objects, jobs, and parameters.
/RCRemove connections - drop all connections from the application.
/RJRemove jobs - drop all jobs from the application.
/RPRemove parameters - drop all parameters from the application.
/AFAbsolute application id file name which restores point is being created for.

If using a trusted connection, the user and password are not necessary.

Batch Application LOAD Options

The following options are available in Setup Administrator to load applications.

OptionDescription
/ALSelect application load.
/AFAbsolute application ID file name.
/LFAbsolute log file name.
/PFAbsolute XML parameter file name.
/SOStay open - Setup Administrator does not close after the application has been created. Relevant for /AL LOAD option. Relevant for -QA, -QR, -WS, -QL, and -QV application switch options. Not relevant for -QS switch option. For switch options, refer to SQL Server Quick Application for details.
  • No labels