Creating global scripts

You can add global scripts that can be called from any other hooks in your schema.

About this task

To create a global script:

Procedure

  1. Start the Designer.
  2. In the Workspace, expand the Global Scripts folder.
  3. Right-click the language folder, Basic or Perl, and click Add.
  4. Type a name for the script.
  5. Double-click the script name to start the Script editor.
  6. Edit the script. Type your code in place of this line:
    REM TODO -- put your script code here

    When you create a global script, Rational® ClearQuest® software creates a placeholder for the hook but does not create any code. You must supply all code for your function or subroutine, including the Function or Sub declaration and parameter list. The names that you give to your global scripts must be unique within the schema.

  7. When you are finished editing the global script, click Hooks > Compile verify that it contains no syntactical errors. When you compile the script, the code is saved.
  8. When you are finished, close the Script Editor window.