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.

Table 10. Summary of Copy Functions for Database <strong>File</strong>s<br />

Database <strong>File</strong>s 1<br />

Physical Logical<br />

Copy Function Parameter<br />

From To From To<br />

Select files FROMFILE 2<br />

X X<br />

TOFILE X<br />

Select members FROMMBR X X<br />

TOMBR X<br />

Add to, replace, or update<br />

existing records<br />

MBROPT X<br />

Create the to-file CRTFILE 3<br />

X X X<br />

Print copied, excluded,<br />

and error records<br />

PRINT 4<br />

X X X<br />

Select by record format RCDFMT X<br />

Select by relative record FROMRCD X X<br />

number<br />

5<br />

TORCD X X 5<br />

Select by key field value FROMKEY X X<br />

TOKEY X X<br />

Specify number of records<br />

to copy<br />

NBRRCDS X X<br />

Select by character content INCCHAR X X<br />

Select by field value INCREL X X<br />

Process different database<br />

record formats<br />

FMTOPT X X X<br />

Update sequence number<br />

and date<br />

SRCOPT X X X<br />

Specify start value and<br />

increment<br />

SRCSEQ X X X<br />

Print character and hex<br />

format<br />

OUTFMT 4<br />

X X X<br />

Maximum recoverable<br />

errors allowed<br />

ERRLVL X X X<br />

Disregard or include<br />

deleted records<br />

COMPRESS 6<br />

Note:<br />

X X<br />

1<br />

DDM files will appear to act like database files, with exceptions noted in the Distributed Data <strong>Management</strong><br />

book.<br />

2<br />

3<br />

4<br />

On the CPYFRMQRYF command, the FROMOPNID parameter is used to identify an open identifier for the<br />

open query file to be copied from. The FROMFILE parameter is used in all other copy commands.<br />

If the to-file does not exist before the copy operation and the from-file is a physical or logical file, the copy<br />

operation will create a physical file as the to-file if you specified CRTFILE(*YES) on the copy commands.<br />

You can specify a program-described printer file so that the copy will produce a list with no special<br />

formatting or page headings, or you can specify TOFILE(*PRINT) to produce a formatted list. You can<br />

specify PRINT(*COPIED) to produce a formatted list of the copied records, you can specify PRINT(*EXCLD)<br />

to produce a formatted list of the records excluded by the INCCHAR or INCREL parameters, and you can<br />

specify PRINT(*ERROR) to produce a formatted list of records causing ERRLVL errors. When you request a<br />

list by specifying the TOFILE(*PRINT) parameter, the OUTFMT parameter specifies whether the data is<br />

printed in character or in both character and hexadecimal form.<br />

5<br />

74 <strong>File</strong> <strong>Management</strong> V4R5<br />

6<br />

You can specify the FROMRCD and TORCD parameter values for a logical file if it has an arrival sequence<br />

access path.<br />

You cannot specify COMPRESS(*NO) if:

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

Saved successfully!

Ooh no, something went wrong!