CT |
![]() ![]() ![]() |
The CT (Copy to Terminal) command displays the content of record(s) from a file.
Format
CT {DICT} filename {record ... | *} {options}
where
The CT command displays the specified records from file. Each record is preceded by the file and record names.
When using the default select list as the source of record ids to be processed, a confirmation prompt is issued prior to commencing the display. This can be suppressed using the NO.QUERY option.
By default, the report shows each line (field) of the record on a separate line, prefixed with the line number. Lines that are wider than the output device are wrapped to the next line.
The HEX option, produces a report in which the data is displayed in hexadecimal form, two hexadecimal digits per character.
The BINARY option treats the record as binary data in which field marks are simply part of the data. The record is shown in both hexadecimal and character format, 16 bytes per line. Non-printing characters are displayed as dots (.) except for the field mark, value mark and subvalue mark which as shown as ^, ] and \. Each line is prefixed by the byte offset (from zero) of the first byte on the line.
Example
SELECT VOC WITH F1 LIKE X... CT VOC
This command sequence would display each X type record from the VOC.
CT READERS 2 READERS 2 1: Cartwright, D 2: 7 Spring GroveyNottingham 3: 1-1y3-1
The above command displays the record with id 2 from the READERS file. The y in the final line is a terminal dependent representation of the value mark character.
See also: DUMP |