EnterApp

Web Services Council

Enterprise Applications
User Guide

FCOPY

Description

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.

Usage

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)

EXIT

Copy A File To A New File

FROM=myfile;TO=newfile;NEW

EXIT

Copy A Subset Of A File To A New File

FROM=myfile;TO=newfile;NEW;SUBSET="PASTDUE",60

EXIT

This copies all records to the new file which have the characters PASTDUE starting in column 60.

FROM=myfile;TO=newfile;NEW;SUBSET=(5:25)

EXIT

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

FROM=myfile1;TO=*LP

FROM=myfile2;TO=*LP

EXIT