Creating and saving a command script

Use the Script page of the Command Center notebook to create a new command script that you can save to the Script Center or to the file system.

Fields and controls

Authorities and privileges



To create and save a command script:

  1. Open the Command Center notebook.
  2. Click the Script tab. The Script page opens.
  3. Type the commands that will make up your script, separated by semicolons.
    Note:The default statement termination character is the carriage return. You can, however, select the Use statement termination character check box on the General page of the Tools Settings notebook, and specify a different termination character. If you select this check box and do not specify a termination character, the default termination character is the semicolon. (This option is not valid on the Interactive page.) Termination characters are valid only for DB2 scripts. For scripts containing CREATE PROCEDURE statements, a termination character other than a semicolon should be used.
  4. Select Script->Save As from the menu selections. The Save As window opens.
  5. If you want to save your script to the Script Center, select the Save to the Script Center check box, select a DB2 instance, and type a brief script description, and the name of the working directory in the associated fields.

    If you want to save your script to the file system, you can use the File Browser controls to specify its location.

  6. When you are finished, click the OK push button.



Related information