HPlogo ALLBASE/ISQL Reference Manual: HP 9000 Computer Systems > Chapter 2 Getting Started with ISQL

Setting Command Options

» 

Technical documentation

Complete book in PDF
» Feedback

 » Table of Contents

 » Index

Various options are controlled with the SET command.

The SET options have initial settings, which you can change for the duration of an ISQL session with the SET command. To determine the current value of a SET option, you use the LIST SET command. The following example illustrates the initial values of all SET options:

   isql=> LIST SET @;



   autoc[ommit]      - OFF

   autol[ock]        - OFF

   autos[ave]        - 5

   c[ontinue]        - ON

   conv[ert]         - OFF

   ec[ho]            - OFF

   echo_[all]        - OFF

   ed[itor]          - /usr/bin/vi

   es[cape]          - \

   exit[_on_dberr]   - OFF

   exit_on_dbwarn   - OFF

   fl[agger]         -

   f[raction]        - 2

   load_b[uffer]     - 16384

   load_e[cho]       - ON

   n[ull]            -

   ou[tput]          - isqlout

   ow[ner]           - 

   pa[gewidth]       - 32767

   pr[ompt]          - isql=>



   isql=> SET ECHO ON;

   isql=>

The @ is an ISQL wild-card character meaning all. If your system line-kill character is set to @, precede the @ with the current HP-UX escape character. For example:

   isql=> LIST SET \@;

As indicated in Table 2-2, most SET options control ISQL processing related to specific commands. Note that except the SELECT statement, all commands under "Related Command" are ISQL commands.

Table 2-2 SET Command Options

CategoryRelated CommandSET OptionEffect
Data loading; application program supportINPUT LOADINSTALLAUTOCOMMITDetermines whether ISQL issues COMMIT WORK automatically.
 LOADAUTOLOCKDetermines whether tables are locked when loaded.
 INPUTLOADAUTOSAVEDetermines how often automatic COMMIT WORK is performed.
 LOADCONVERTDetermines whether data will be converted during the load.
 LOADUNLOADLOAD_BUFFERDetermines the size of the load/unload buffer.
 LOADUNLOADLOAD_ECHODetermines when status messages are displayed.
Query resultsSELECTFRACTIONDetermines how many decimal digits are displayed.
  NULLDetermines the character displayed when a value is null.
  OUTPUTDetermines the file to which the query result is sent.
  PAGEWIDTHDetermines the maximum row length in the query result.
Command filesSTARTCONTINUEDetermines whether processing is to be continued if an error is encountered.
  ECHODetermines whether lines in the file are displayed as they are read.
EditingEDITEDITORDetermines the editor invoked.
ISQL prompt PROMPTDetermines the input prompt string.
Special characters ESCAPEDetermines the escape character.
Batch processing ECHO_ALLDetermines whether user input is displayed.
  EXIT_ON_DBERRDetermines whether ISQL terminates immediately when an error is encountered.
  EXIT_ON_DBWARNDetermines whether ISQL terminates immediately when a warning is encountered.

 

Feedback to webmaster