FCOPY is a utility program that makes it possible for you to copy data from one file to another. It is useful in creating a duplicate copy of another file. With FCOPY one can copy the content of an entire file or a selected portion of a file. You may designate the file subset as being a range of contiguous records (such as records 5 through 25) or as being all records that contain a certain data item (such as all records that contain the character string PASTDUE in columns 60 through 66).
Occasionally you may encounter a disc file whose contents are unknown. The FCOPY display functions allow you to examine the contents of such files at a terminal or to a printer. By leaving out the name of the receiving file you can display back to the terminal.
Select FCOPY from your System Utilities menu.
A '>' (greater than symbol) prompt will be issued. To abort a job before it is finished simultaneously press CTRL and Y.
Following are some examples of how to use FCOPY:
Display Contents Of A File
FROM=myfile;TO= (Press return)
(the file will list on your terminal, you may receive a warning which you can ignore)
Copy A File To A New File
Copy A Subset Of A File To A New File
This copies all records to the new file which have the characters PASTDUE starting in column 60.
This copies records 5 through 25 to the new file. The syntax (5,25) would copy 25 records beginning with record 5.
Print Contents Of Files On System Printer