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.

|<br />

|<br />

|<br />

|<br />

|<br />

Special considerations for the Override Database<br />

<strong>File</strong> (OVRDBF), Override Diskette <strong>File</strong><br />

(OVRDKTF), and Override Tape <strong>File</strong> (OVRTAPF)<br />

commands. . . . . . . . . . . . . . 91<br />

How the copy function adds members to the<br />

to-file . . . . . . . . . . . . . . . 91<br />

Selecting the records to copy . . . . . . . . 92<br />

Selecting records using a specified record format<br />

name (RCDFMT Parameter) . . . . . . . . 92<br />

Selecting records by relative record numbers<br />

(FROMRCD and TORCD Parameters) . . . . 93<br />

Selecting records by record keys (FROMKEY and<br />

TOKEY Parameters) . . . . . . . . . . 94<br />

Selecting a specified number of records<br />

(NBRRCDS Parameter) . . . . . . . . . 98<br />

Selecting records based on character content<br />

(INCCHAR Parameter) . . . . . . . . . 99<br />

Selecting records based on field value (INCREL<br />

Parameter) . . . . . . . . . . . . . 101<br />

Copying deleted records (COMPRESS<br />

Parameter) . . . . . . . . . . . . . 103<br />

Printing records (PRINT, OUTFMT, and<br />

TOFILE(*PRINT) parameters) . . . . . . . . 105<br />

Creating an unformatted print listing . . . . 106<br />

Copying between different database record formats<br />

(FMTOPT parameter). . . . . . . . . . . 106<br />

Specifying data for different field types and<br />

attributes . . . . . . . . . . . . . . 109<br />

Converting universal coded character set<br />

(UCS-2) graphic fields . . . . . . . . . 117<br />

Converting System/370 floating point and null<br />

fields . . . . . . . . . . . . . . . 118<br />

Conversion rules for copying files . . . . . 119<br />

Adding or changing source file sequence number<br />

and date fields (SRCOPT and SRCSEQ Parameters) 120<br />

Copying device source files to database source<br />

files . . . . . . . . . . . . . . . 120<br />

Copying database source files to device source<br />

files . . . . . . . . . . . . . . . 121<br />

Copying database source files to database<br />

source files . . . . . . . . . . . . . 121<br />

Preventing errors when copying files . . . . . 122<br />

Limiting recoverable errors during copy . . . 122<br />

Preventing date, time, and timestamp errors<br />

when copying files . . . . . . . . . . 124<br />

Preventing position errors when copying files 125<br />

Preventing allocation errors when copying files 126<br />

Preventing copy errors that result from<br />

constraint relationships . . . . . . . . . 127<br />

Copying files not in check-pending status . . . 127<br />

Copying files in check pending status . . . . 128<br />

Preventing copy errors related to your authority<br />

to files. . . . . . . . . . . . . . . 128<br />

Improving copy performance . . . . . . . . 129<br />

Avoiding keyed sequence access paths . . . . 129<br />

Specifying fewer parameters . . . . . . . 129<br />

Year 2000 support: date, time, and timestamp<br />

considerations . . . . . . . . . . . . . 130<br />

Copying FROM logical file ZONED,<br />

CHARACTER, or PACKED field (with a<br />

DATFMT) TO a DATE field in a physical to-file . 130<br />

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

Copying FROM or TO a ZONED or PACKED<br />

field (that has no DATFMT) TO or FROM a<br />

DATE type field . . . . . . . . . . . 132<br />

Restrictions for Year 2000 support . . . . . 134<br />

Copying complex objects . . . . . . . . . 134<br />

Copying files that contain user-defined<br />

functions . . . . . . . . . . . . . . 134<br />

Copying files that contain user-defined types 134<br />

Copying files that contain DataLinks . . . . 135<br />

Copying files that contain large objects . . . . 135<br />

Copying between different systems . . . . . . 139<br />

Using the Copy From Import <strong>File</strong><br />

(CPYFRMIMPF) command to copy between<br />

different systems . . . . . . . . . . . 140<br />

Using the Copy To Import <strong>File</strong> (CPYTOIMPF)<br />

command to copy between different systems . . 140<br />

Notes on the CPYFRMIMPF command . . . . 140<br />

Restrictions on the CPYFRMIMPF command 141<br />

(CPYFRMIMPF) Importing data to the AS/400<br />

when the from-file is a database file or DDM<br />

file . . . . . . . . . . . . . . . . 141<br />

(CPYFRMIMPF) Importing data to AS/400<br />

when the import file is a stream file . . . . . 142<br />

Parallel data loader support to use with the<br />

CPYFRMIMPF command . . . . . . . . 143<br />

Handling data from the import file . . . . . 143<br />

Delimited import file . . . . . . . . . . 143<br />

Fixed formatted import file . . . . . . . . 145<br />

Notes on the CPYTOIMPF command . . . . 146<br />

Notes on the delimited import file (CPYTOIMPF<br />

command) . . . . . . . . . . . . . 147<br />

Restrictions for the CPYTOIMPF command . . 148<br />

Copying data to the import file in a fixed<br />

format (CPYTOIMPF command) . . . . . . 148<br />

Chapter 5. Working with spooled files 149<br />

Output spooling . . . . . . . . . . . . 149<br />

Spooling device descriptions . . . . . . . 150<br />

Summary of spooled file commands. . . . . 151<br />

Locating your spooled files . . . . . . . . 151<br />

<strong>File</strong> redirection of spooled files . . . . . . 151<br />

Output queues of spooled files . . . . . . . 152<br />

Summary of output queue commands . . . . 153<br />

Default printer output queues . . . . . . . 153<br />

Default system output queues . . . . . . . 154<br />

Creating your own output queues . . . . . 154<br />

Order of spooled files on an output queue . . 154<br />

Using multiple output queues . . . . . . . 155<br />

Output queue recovery . . . . . . . . . 155<br />

Spooling writers . . . . . . . . . . . . 156<br />

Summary of spooling writer commands . . . 157<br />

Spooled file security . . . . . . . . . . . 157<br />

Controlling the number of spooled files in your<br />

system . . . . . . . . . . . . . . . 158<br />

Command examples for additional spooling<br />

support . . . . . . . . . . . . . . . 159<br />

Input spooling . . . . . . . . . . . . . 159<br />

Summary of job input commands . . . . . 160<br />

Job queues . . . . . . . . . . . . . 161<br />

Transferring jobs in a queue . . . . . . . 163<br />

Using an inline data file . . . . . . . . . 165

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

Saved successfully!

Ooh no, something went wrong!