LIST HISTORY

From Recital Documentation Wiki
Revision as of 17:03, 11 November 2009 by Helengeorge (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Purpose

Display a list of previously entered commands


Syntax

LIST HISTORY

[LAST <expN>]

[TO FILE <.txt filename> | (<expC>)] | [TO PRINT]


See Also

!, ALIAS, SET DOHISTORY, SET HISTORY, SET PAGELENGTH, SET PAGEWIDTH, SET PRINTER


Description

The LIST HISTORY command displays a list of commands currently held in the command history. When SET HISTORY is ON, all commands entered in interactive command mode are stored in a command history list. The SET HISTORY TO <expN> command can be used to specify the size of the history list. If SET DOHISTORY is also ON, then commands executed in program files are also stored in the command history.


Keyword Description
LAST <expN> Displays the last <expN> of previously entered commands
TO <file> The display output will be sent to the specified file. The filename can be substituted with a <expC>, enclosed in round brackets, which returns a valid filename. If no file extension is specified, then ".txt" will be used. The command SET PAGELENGTH governs the output file pagination and SET PAGEWIDTH defines the width of each page. Page numbers are centered on the bottom of the page according to width.
TO PRINT The display output will be sent to a printer. The TO PRINT option will default to a local printer unless the command SET PRINTER TO \\SPOOLER is issued. The print request will then be spooled to the system printer, which is defined by the environment variable DB_PRINT.


Example

set history on
dir
use payroll index events, names
list history
1 dir
2 use payroll index events, names


Products

Recital Server, Recital