 |
» |
|
|
|
FCOPY is a utility within the system similar to the COPY command, which enables you to copy data from one file to another file. The FCOPY command utility provides more flexibility and capabilities than the COPY command, however. Syntax |  |
From MPE: FCOPY {FROM=sourcefile;TO=}[targetfile][;NEW]
|
From the FCOPY subsystem: Parameters |  |
- FROM
Specifies the name of the file (sourcefile) to be copied. - TO
Specifies the name of the file (targetfile) to which sourcefile is to be copied. If you omit targetfile, sourcefile is copied to the $STDLIST device. - NEW
Creates a new permanent disk file. The default is that targetfile must already exist.
Operation Notes |  |
Usage You can enter this command from a session, a job, or a program. Pressing Break suspends the execution of this command. Entering the RESUME command continues execution of the command. If you enter this command from a program, either you or the program must have process handling (PH) capability. Utility capabilities The FCOPY command enables you to do the following tasks: Copy data from any input device to any output device. Create multiple copies of files. Create account-independent magnetic tape copies of disk files to move from one HP 3000 system to another. (The STORE and RESTORE commands, however, are recommended for moving files between systems.) Transfer programs or data from one medium to another (magnetic tape to disk, for example). Convert data from one computer code system (EBCDIC, for instance) to another (ASCII, for instance) as you copy the data.
Refer to the FCOPY Reference Manual (32212-90003) for information on using these capabilities. Examples |  |
To copy the file TEST to a new
file named TEMP from the MPE command interpreter, enter: :FCOPY FROM=TEST;TO=TEMP;NEW
HP32212A.03.30 FILE COPIER (C) HEWLETT-PACKARD CO. 1990
EOF FOUND IN FROMFILE AFTER RECORD 23
23 RECORDS PROCESSED *** 0 ERRORS
END OF SUBSYSTEM
:
|
To copy the file TEST2 to a new file named TEMP2 from the FCOPY utility subsystem and then exit, enter: :FCOPY
HP32212A.03.30 FILE COPIER (C) HEWLETT-PACKARD CO. 1990
>FROM=TEST2;TO=TEMP2;NEW
EOF FOUND IN FROMFILE AFTER RECORD 23
23 RECORDS PROCESSED *** 0 ERRORS
>EXIT
END OF SUBSYSTEM
:
|
Related Commands |  |
|