FCOPY Reference Manual (32212-90008)

60 Chapter5
FCOPY Functions
CCTL/NOCCTL
Examples
ALPHA is a disk file, and its label specifies the CCTL option. BETA is a disk file created
without CCTL.
The command below copies each record from BETA to ALPHA, interpreting the first data
character in each record in BETA as the carriage control character:
>FROM=BETA;TO=ALPHA;CCTL
In the next example, the command copies each record from ALPHA to GAMMA, a new file,
using the carriage control character in each record in ALPHA as the carriage control
character in each record in GAMMA. File GAMMA is created with the CCTL attribute, as follows:
>FROM=ALPHA;TO=GAMMA;NEW;CCTL
As we have seen above, ALPHA is a disk file that has CCTL specified in its label, and BETA is
a disk file without CCTL. In the following example, the FCOPY command copies each record
from ALPHA to BETA, including the carriage control character, as data.
>FROM=ALPHA;TO=BETA;NOCCTL