Quantcast
Channel: Toad for SAP Solutions
Viewing all articles
Browse latest Browse all 695

Wiki Page: Automation

$
0
0
Schema Compare and Data Compare Activities Schema Compare and Data Compare activities allow to reuse comparison projects prepared in advance or run new comparison wizard right from the Automation. The interface for both activities is similar and easy-to-use. When preparing an activity for automation you simply specify the comparison project, locations for report files and synchronization script. You can also select to execute scripts that will generated during data or schema comparison. Automation  button was added to the Data Compare and Schema Compare toolbar. After clicking this button you will be prompted to save your comparison project. Automation pane is invoked automatically and lists your project in  Data  or  Schema  compare file field. Variables This release of Toad for Sybase includes many new enhancements to Automation variables. Automation variables are now more flexible and easier to use. Toad for Sybase has expanded the number of places you can use variables in an Automation script. When you create a new variable in Automation (using the Set Variable activity) you can now specify a variable type (String, Number, DateTime, Boolean, or SQL). Built-in variables (variables specified by an activity, like the row-count variable) now have the same functionality and behavior as variables you create using the Set Variable activity. You can use a built-in variable as a bind variable in a SQL statement. You can include a built-in variable in the file name of an output file. The format of the default name that Toad automatically assigns to all built-in variables has changed. The name is composed of the activity’s name (which you can specify) and the variable’s purpose. So if you have an activity named SelectOrders, Toad now names this activity’s row-count variable SelectOrders_RCOUNT. You can customize the name of a built-in variable if you don't want to use the default name. Any bind variables stored in the Bind Variables dialog in Toad are now available to use in Automation. The stored bind variables are now accessible from the Variables list in the expression editors in Automation activities, and also in the  Set value  field in the Find and Replace activity (if  Variable Value  is selected). For activities in which you can add a suffix to the output file, you can now select a variable from a previous activity or a bind variable stored in Toad to include as part of the suffix. Formatting the value for a Date type variable is now easier.In applicable activities, Toad now limits the selection of variables to only those created in activities previous to the current activity. The  Date Functions  list provided by the expression editor (in various activities) now includes more-flexible, easier to use functions.   You can now use a dash (-) in date/time formats used in Automation variables. You can now use a colon (:) or a forward slash (/) in date/time formats used in Automation variables (except when the variable appears in a file name). In the Import Wizard and Export Wizard activities, you can now use a variable in the Import/Export template file name. Loop Dataset Activity In the Loop Dataset activity, you can now select any previously created SQL-type variable to use as the dataset variable. For example, you can use the SQL variable from any Execute Script, Set Variable, or even another Loop Dataset activity that precedes the current activity. The dataset variable in the Loop Dataset activity is now easier to use, and you no longer need to add a Set Variable activity to initialize and use the value stored in the dataset variable. You can use the following format to filter data from the dataset variable when referencing it: dataset variable name . filter parameter Example: Loop_data_1_SQL.region_id, where region_id is the column name Set Variable Value Activity In addition to the many new enhancements to Automation variables, this release includes the new Set Variable Value activity. You can use this activity to easily assign a new value to a previously-defined variable. Loop Connections Activity This release includes a new Automation activity called the Loop Connections activity, which you can use to loop through multiple connections, executing one or more activities against each connection in the list. Copy File and Delete File Activities You can now use standard wildcard characters in the file name to help you select one or more files to copy or delete. Previously, you could use the only the asterisk (*) in the file name to select multiple files to copy or delete. You can now use a variable in the file name to select one or more files to copy or delete. You can now generate and save detailed Object comparison reports created by the Data Compare activity. You can also generate and run a synchronization script using the Data Compare activity. Automation Guided Tour The Automation Guided Tour is a helpful wizard that guides you through the process of creating one of several different simple Automation scripts. Use this new wizard to help you create one of the following basic scripts: Export Data and Email Execute Script Import Wizard Exception Reporting Loop Dataset You can send a SQL statement to the Automation Guided Tour from the Editor or the Query Builder by clicking the  Send SQL to Automation  button in the toolbar. In addition, the last page of the Import Wizard allows you to send your import template to the Automation Guided Tour. After completing the wizard, your new script opens in an Automation window where you can further customize and enhance the script, if necessary. General Automation Enhancements This release also includes several general enhancements to Automation activities. In the Automation Toolbox, some activities have switched categories to better reflect their function. The Send Email and the Run Automation Script activities are now in the Systems Activities category. For activities in which you can add a suffix to the output file, Toad now provides a convenient expression editor to easily build a customized suffix. In the Select to File activity, selecting the options for your export file is now much simpler. If necessary, you can still specify the more advanced export file options by using the Export Wizard activity instead of the Select to File activity. In activities that provide a File Collection Editor dialog for selecting files to attach or zip, etc., Toad limits the files to only those created in previous activities. In addition, if a previous activity is disabled, its output files are not available. Important! Toad includes significant enhancements to Automation that affect attributes in the actual automation script. If you open an automation script from a previous version, a message informs you that the script will be upgraded so it will work in the current version of Toad. Caution:  If you upgrade this script, it will no longer be compatible with previous versions of Toad. However, a backup copy of your script will be saved in the Automation\bak folder in the Application Data Directory under  Help | About .

Viewing all articles
Browse latest Browse all 695

Trending Articles