To modify an existing script, select the script name from the command menu and right-click. Then select the following menu sequence: A window will be displayed containing the name of the script and a menu of additional options.
The script code is displayed in the Script tab and can be changed and saved. Script code can also be copied and pasted by right-clicking in the command window to open an edit-selection menu.
The script can be executed during modification or printed using the menu bar. When working with the script, the Execution Mode can be specified.
|
|
The properties tab
The Properties tab displays information about the script.
|
|
Name
Shows the display name for the script. The name defaults to the script name, but can be modified.
Filename
Displays the location of the .ecd script file.
ID
Displays the generated internal script identifier used by the Explorer GUI.
Associations
The Associations field determines whether the script will be
available in context menus (right-clicks) on grids by associating the
script type to the record type used by grids. For example, if a script
displays a grid containing dataset names, and the record
schema for the records has a type of dataset
or dsname specified, the resulting grid will have the
Delete command available.
In the schema definition, the TYPE operand defines the record types. For example:
DEFREC @GVTOC TYPE(DATASET GRID FAST)
dataset
and dsname in the semi-colon–separated name list; any
grids with record schemas using dataset or
dsname will match the association. Although
association names may be arbitrary, DTS recommends using descriptive
names that clarify the script's purpose. The association can also be used to generate a tree hierarchy when a context menu is displayed. Vertical bars (|) are used to define each node in the tree. For example, the HSM backup command uses the following associations to add the HSM hierarchy menu to the context popups for dataset associations:
dataset|HSM;dsname|HSM
Visibility
The Visibility field is an extension to the context-menu associations. The boolean expression specified in the field can be used to limit the visibility of the command on the context menu. The expression is written in the scripting language used by the Explorer GUI. If the expression evaluates to a true condition, the item will be visible on the context menu.
For example, to limit visibility of a script on rows with DSORG=PO and only when a single row is selected on the Members List, use:
(parm.RowCount=1) AND
(parm.GetValue(0,'DSORG')='PO')
Notes
The Notes field can be used to save comments about the script.