1. Home
  2. COPY directive

COPY directive

Forms a transcript of a job.

Option

PRINT = string tokens What to transcribe (statements, output); default stat

Parameter

    scalar Channel number of output file

Description

The COPY directive can be used to save a copy of either input statements, or output, or both, in an output file. For example

OPEN 'GEN.REC','GEN.OUT'; CHANNEL=2,3; FILETYPE=output

COPY [PRINT=statements] 2

COPY [PRINT=output] 3

will keep a record of all the statements in the file GEN.REC and of all the output in the file GEN.OUT.Setting PRINT=* stops any copying to the specified channel. For example

COPY [PRINT=*] 2

stops copying to GEN.REC.

You can thus obtain output in more than one style (for example RTF and HTML as well as plain-text) by opening, and then copying, to files in the required styles (see OPEN).

Option: PRINT.

Parameter: unnamed.

See also

Directives: OPEN, PRINT, READ.

Commands for: Input and output.

Updated on March 8, 2019

Was this article helpful?