30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

– Copy data directly (left to right) disregarding any differences (*NOCHK<br />

value).<br />

v Copy from a source file to a data file or from a data file to a source file. If the<br />

from-file or to-file is a device file, this function is automatic. If both files are<br />

database files, you must specify FMTOPT(*CVTSRC).<br />

v Change sequence numbers and zero dates in the sequence number and date<br />

source fields when copying to a source physical file (SRCOPT parameter). When<br />

renumbering is to be done, the starting sequence number and the increment<br />

value can be specified (SRCSEQ parameter).<br />

v End the copy after a specified number of recoverable errors are encountered<br />

(ERRLVL parameter).<br />

v Create the to-file as part of the copy operation (CRTFILE parameter).<br />

See the CL Reference for the specific parameters supported by each copy<br />

command.<br />

Copying files: supported functions<br />

The following tables ( Table 10 and Table 11 on page 75) provide a summary of the<br />

specific copy functions (using the copy commands) you can use for copying<br />

records by the types of files being copied from and to. The functions with their<br />

associated parameters are listed down the left side, and the file types (and if each<br />

can be a from-file and a to-file) are shown across the top. An X indicates that the<br />

associated parameter is valid for the type and use of file under which it occurs.<br />

Chapter 4. Copying files 73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!