beautypg.com

HP NonStop G-Series User Manual

Page 145

background image

Command Interpreter

HP AutoSYNC User’s Guide522580-015

8-57

COPY

the name of the file that is input to the copy command. It can be a process, a tape,
terminal, or disk file. Supported disk files include edit files, spooler files, Enscribe
structured and unstructured files.

out-file

the name of the file that is destination of the copy command. It can be a process, a
tape, terminal, a printer or disk file. Supported disk files include edit files, spooler
files, Enscribe structured and unstructured files. If the out-file is omitted, the
destination of the COPY is the AutoSYNC out file, which is by default the terminal
control-options.

COUNT num-records

the number of records or rows to be copied. If omitted, all records are copied.

FIRST ordinal-record-num
KEY { record-spec | key-value }
key-spec ALTKEY key-value [, key-value ]

the starting record of the input file to copy. If omitted, the copy starts at the first
record or row in the input file.

ordinal-record-num

is the number of records or rows from the beginning of the file that are to be
skipped. The first record in a file is record zero KEY { record-spec | key-value }
specifies the primary key value for the starting record or row of a structured
disk file.

record-spec is an integer on the range of 0 to 4294967295.

°

for unstructured files, record-spec is the starting relative byte address.

°

for relative files, record-spec is the starting record number

°

for entry-sequenced files, record-spec is the ordinal-record-number

key-value applies only to key-sequenced files and specifies the approximate
position of the starting record; key-value is specified as a string or as integer
byte values in the range of 0 to 255.

The key-value is entered as follows:

“[“ { string } [, { string } ] “]”
{ 0:255 } [ { 0,255 } ]
where the integers represent the byte values. To specify a list of strings,
enclose each string in quotation marks separated by a comma and enclose the
list in square brackets.

This manual is related to the following products: