Jump to content United States-English
HP.com Home Products and Services Support and Drivers Solutions How to Buy
» Contact HP
More options
HP.com home
ALLBASE/ISQL Reference Manual: HP 9000 Computer Systems > Chapter 4 ISQL Commands

DO

» 

Technical documentation

Complete book in PDF
» Feedback
Content starts here

 » Table of Contents

 » Index

The DO command lets you execute any of the commands in the command history buffer.

Scope

ISQL only.

ISQL Syntax

DO [ CommandNumber CommandString ]

Parameters

CommandNumber

identifies one of the commands in the command history buffer. The command history buffer holds the fifty most recently submitted commands, numbered 1 through 50. The CommandNumber of the most recently submitted command is 1.

CommandString

identifies the most recent command in the command history buffer that begins with the CommandString.

Description

  • You can use the LIST HISTORY @ command to identify the CommandNumber associated with each command currently in the command history buffer.

  • If no parameter is specified, the most recently submitted command is assumed.

  • DO cannot be used from a command file or the command buffer.

Example

   isql=> LIST HISTORY @;



    1     SELECT SalesPrice FROM PurchDB.Parts;

    2     INFO PurchDB.Parts;

    3     EDIT MyFile;

    .

    .

    .



   isql=> DO 2;



   The "INFO PurchDB.Parts" command is executed because it is the second

   command in the command history buffer.



   isql=> DO;
   The "INFO PurchDB.Parts" command is executed again because it is the most

   recent command in the command history buffer.



   isql=> DO ED;



   The "EDIT MyFile" command is executed because it is the most recent command

   in the command history buffer that begins with the string "ED".
Printable version
Privacy statement Using this site means you accept its terms Feedback to webmaster
© Hewlett-Packard Development Company, L.P.