FCOPY Reference Manual (32212-90008)
Chapter 3 31
FCOPY Applications and Examples
Displaying Disk Files
Binary Files
To display the contents of a binary disk file at your terminal, do the following:
1. Leave the TO parameter empty.
2. Use the HEX or OCTAL function to display the hexadecimal or octal representation of the
file's contents. Use the CHAR function to display any ASCII characters that may exist.
For example, you might use the commands below to display a file on your terminal.
>FROM=FOO;TO=;OCTAL;CHAR
FOO RECORD 0 (%0, #0)
00000: 000000 000000 000000 044105 053514 042524 052055 050101 ......HEWLETT-PA
00010: 041513 040522 042040 031462 031061 031101 027060 031456 CKARD 32212A.03.
00020: 031460 020106 044514 042440 041517 050111 042522 020040 30 FILE COPIER
00030: SAME: TO 000040-1
00040: 020040 020040 020040 020040 020040 020040 024103 024440 (C)
00050: 044105 053514 042524 052055 050101 041513 040522 042040 HEWLETT-PACKARD
The NORECNUM function can be used to suppress the display record numbers.
File Subsets
To display a subset of a file on your terminal, use the SUBSET function. The example below
copies a subset of five records (records 30 through 34) from the file CUSTDATA to a terminal.
CUSTDATA is an ASCII file containing the names and addresses of customers.
>FROM=CUSTDATA;TO=;SUBSET=29:33
XYZ MANUFACTURING CO. 131 PINE STREET SF
WIDGET, INC. 43721 OAK STREET DET
ROBERT ALCOTT & ASSOCIATES 752 SURF AVE. CHI
WILLIAM LEWIS & SON 3217 W. MADISON AVENUE NY
SUPER GIZMO OF NEVADA, INC. 431 S. JACKPOT LANE RENO