FCOPY Reference Manual (32212-90008)
30 Chapter3
FCOPY Applications and Examples
Displaying Disk Files
Displaying Disk Files
You display the contents of your files by copying them to your terminal. FCOPY displays
files in the following formats:
• Character.
• Octal.
• Hexadecimal.
ASCII Files
If you know that the file is an ASCII file, simply copy it to your terminal by leaving TO
empty. For example,
>FROM=ASCITEST;TO=
This is an ASCII file.
It contains two lines of text.
EOF FOUND IN FROMFILE AFTER RECORD 1
2 RECORDS PROCESSED * * * 0 ERRORS
Hexadecimal and Octal Codes
Use the CHAR and HEX, HEXO, or OCTAL functions to display both ASCII characters and
hexadecimal or octal codes. You might display a file in both ASCII and octal, for example,
when your terminal upshifts lowercase characters. Combining octal with ASCII would let
you compare octal values and determine when characters are actually lowercase. The
example below displays both octal codes and ASCII characters. The numbers at the end of
each record are text editor line numbers that start at 1 (00001000):
>FROM=TEXT3;TO=;OCTAL;CHAR
TEXT3.PUB.ACCOUNT RECORD 0 (%0)
000000: 052110 044523 020111 051440 046111 047105 020061 27040 THIS IS LINE 1
000010: 020124 044105 020070 026504 044507 044524 020116 52515 THE 8-DIGIT NUM
000020: 041105 051123 020101 052040 052110 042440 051111 43510 BERS AT THE
000030: 052040 040522 042440 052110 042440 020040 020040 20040 RIGHT ARE THE
000040: 020040 020040 020040 020040 030006 030006 030006 30006 00001000
TEXT3.PUB.ACCOUNT RECORD 1 (%1)
000000: 052105 054124 020105 042111 052117 051040 046111 047105 TEXT EDITOR LINE
000010: 020116 052515 041105 051123 027040 020116 047524 042440 NUMBERS. NOTE
000020: 052110 040524 020124 044105 020122 042503 047522 042040 THAT THE RECORD
000030: 047125 046502 042522 051140 020040 020040 020040 020040 NUMBERS
000040: 020040 020040 020040 020040 030060 030061 030460 030060 00002000