|
|
FCOPY Reference Manual: HP 3000 MPE/iX Computer Systems > Chapter 5 FCOPY FunctionsCLEAR |
|
Displays the contents of a file, record by record, in the form of character symbols for all codes in the file. The graphic representation of each code depends upon how the displaying device interprets the code: whether as a command, a displayable character, or a nondisplayable character. If an output device interprets a code as a command, it displays nothing unless you have entered a "display functions" mode at a terminal that has such a mode.
Where:
The fromfile must have read access, and the tofile must have write access. The tofile is normally a list device such as $STDLIST, but it can also be another device for intermediate storage. The record size for an intermediate storage device should be the same as that of the list device that will ultimately print the data, and must be equal to or greater than 60 bytes. Use CLEAR to display files that contain codes other than ASCII. Unlike CHAR, CLEAR does not replace character codes with decimal points. You can combine the CLEAR function with the OCTAL, HEX, or HEXO functions, one at a time, to display numerical codes as well as character symbols. You may want to display numerical codes along with character symbols when, for example, the output device to which you are copying automatically upshifts lowercase characters (refer to "Notes" below). The tofile can be a printer, terminal, or an intermediate disk file. If the tofile is a disk file, it must be at least 60 bytes in length. If you do not specify NORECNUM and there are words repeated in the file, FCOPY suppresses the duplicate lines and displays a message in the form SAME TO XXXX-1, where XXXX is in octal. This is shown in the example below. If the entire record contains the same character, FCOPY displays at least one line of the repeated character before printing the SAME TO message. However, if all the characters are blanks in an ASCII file, or zeros in a binary file, FCOPY displays only the SAME TO message. Some devices are capable of displaying only uppercase Roman alphabetic characters. When you copy to such a device, the device controller automatically converts lowercase characters to uppercase. In such instances, you may want to combine character and numerical display functions to display the original character codes in addition to the character symbols. In the following example, the CLEAR and OCTAL functions have been combined to show the correspondence between the two forms. This combined function displays the contents of a file where the effects of terminal control sequences need to be seen. It can be used to display data on a terminal so that video enhancements, cursor positioning, and other control functions are made visible. See also the CHAR function. For example,
|
|