30.06.2013 Views

File Management - IBM

File Management - IBM

File Management - IBM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Table 11. Summary of Copy Functions for Device <strong>File</strong>s<br />

Inline Data Diskette<br />

Device <strong>File</strong>s<br />

Tape Printer<br />

Copy Function Parameter From To From To From To From To<br />

Select files FROMFILE X X 1<br />

X<br />

TOFILE X 1<br />

X X<br />

Select members FROMMBR X X<br />

TOMBR X X<br />

Add to or replace<br />

existing records<br />

MBROPT<br />

Create the to-file CRTFILE<br />

Print copied or<br />

excluded records<br />

PRINT 2<br />

X X X X X X<br />

Select by record<br />

format<br />

RCDFMT<br />

Select by relative FROMRCD X X X<br />

record number<br />

TORCD X X X<br />

Select by key field FROMKEY<br />

value<br />

TOKEY<br />

Specify number of<br />

records to copy<br />

NBRRCDS X X X<br />

Select by character<br />

content<br />

INCCHAR X X X<br />

Select by field value INCREL<br />

Process different<br />

database record<br />

formats<br />

FMTOPT<br />

Update sequence<br />

number or date<br />

Specify start value<br />

and increment<br />

Print character or<br />

hex format<br />

Maximum<br />

recoverable errors<br />

allowed<br />

SRCOPT<br />

SRCSEQ<br />

OUTFMT 2<br />

X X X X X X<br />

ERRLVL X<br />

Disregard or include COMPRESS<br />

deleted records<br />

Note:<br />

1<br />

If the from-file and to-file are diskette files, you must specify that the to-file be spooled [SPOOL(*YES)] on a<br />

CRTDKTF, CHGDKTF, or OVRDKTF command.<br />

2<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 parameter, 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 />

Chapter 4. Copying files 75

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

Saved successfully!

Ooh no, something went wrong!