> (Redirect CodeView Output)

Syntax

[[T]]>[[>]]device

Parameter

device

Device or file to which to write output.

Description

The Redirect Output (>) command causes CodeView to write all subsequent command output to a device, such as another terminal, a printer, or a file. The term “output” includes not only output from commands but also the command characters that are echoed as you type them.

The optional T indicates that the output should be echoed to the CodeView screen. If you do not give a T, CodeView echoes only commands that you enter. Use the T option if you are redirecting output to a file to see output from the commands that you are typing.

Note:

If you are redirecting output to another terminal, you may not want to see the output on the CodeView terminal.

If you specify an existing file, CodeView truncates the file and then starts writing output. To preserve the contents of the file, use a second greater-than symbol (>>), which appends output to the file.

Example

In the following example, output is redirected to the device designated as COM1 (for example, a remote terminal). Enter this command when you are debugging a graphics program and you want CodeView commands to be displayed on a remote terminal while the program display appears on the originating terminal.

> >COM1

In the following example, output is redirected to the file OUTFILE.TXT. Use this command to keep a permanent record of a CodeView session.

> T>OUTFILE.TXT

. . .

> >CON

. . .

Note:

The optional T is used so that the session is echoed to the CodeView screen as well as to the file. After redirecting some commands to a file, use the command >CON to return output to the terminal.