NonStop SQL/MP Reference Manual

Table Of Contents
NonStop SQL/MP Reference Manual142115
H-5
Examples—HISTORY
Examples—HISTORY
The following command displays the last five commands or statements entered
during the SQLCI session:
>> HISTORY 5;
4> SHOW PREPARED *;
5> VOLUME PERSNL;
6> ENV;
7> LOG;
8> HISTORY 5;
Host Identifiers
Host identifiers are names used in host language programs to identify data items,
structures, functions, or labels declared in the programs.
In an SQL statement or directive, a host identifier is always preceded by a colon (:), but
other rules for host identifiers depend on the programming language. For rules for host
identifiers in a specific language, see the NonStop SQL/MP programming manual for
the host language you use.
Host Programs
A host program or host language program is a program that contains both host language
statements and embedded SQL statements.
You can write NonStop SQL/MP host programs in C, COBOL85, Pascal, or TAL. For
more information, see one of the following manuals:
NonStop SQL/MP Programming Manual for C
NonStop SQL/MP Programming Manual for COBOL85
NonStop SQL Programming Manual for Pascal
NonStop SQL Programming Manual for TAL
C programs can run in the Guardian or OSS environments; other programs run only in
the Guardian environment.
Host Variables
Host variables are data items declared in a host program and used in both host language
statements and SQL statements. They provide for communication between SQL and the
host language.