Previous Topic: Command Console Results Pane

Next Topic: Use the SQL Assistant

Run a Command Script

Use the following steps to run a command script.

To run a command script

  1. Select a processor from the processor drop-down list box.
  2. If you are running a script for the SQL, OCF, IDD, Schema, Sysgen, or SSC processors, you must select a dictionary from the dictionary drop-down list box.
  3. If you are creating a new command script, you can type your text directly into the Command Console Editor.
  4. If you are running an existing script, click the Open button on the Command Console toolbar or select the Open Script command on the Script menu. The Open dialog displays where you can choose the script that you want to run.

    Open button on the Command Console toolbar

    Note that the file extension that is used in the Open dialog is based on the processor type that you selected in Step 1.

  5. Click the Go button on the Command Console toolbar, select the Go command from the Script menu, or press F5 to execute the command script.
  6. Review your results in the Results pane.

If you have created a new command script or edited an existing script, you can save your script file by clicking the Save button on the Command Console toolbar or selecting the Save Script command on the Script menu. When you do so, the Save dialog displays where you can save the script and execute it at a later time.