Product Documentation

FairCom RTG COBOL Edition User's Guide

Previous Topic

Next Topic

-filecopy

Perform a physical file copy.

Usage:

ctutil -filecopy source_file dest_file [-overwrite].

Notes:

The command is not dependent on the configuration file, thus a ctutil -filecopy command will always perform a physical file copy independently from the configuration settings (as opposed to the -copy (-copy, ctutil -copy) option).

The ctutil -filecopy command does not overwrite existing files unless the -overwrite option is specified.

Note: The ctutil -filecopy command requires an exclusive open of the file. c-tree attempts to open the file in exclusive mode while allowing other connections read access. If the file is already open, c-tree flushes updates to disk and sets the update flag to zero to indicate that the file is in a clean, consistent state. If c-tree cannot open the file in exclusive mode, the copy operation fails.

See also:

TOCIndex