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.

- Description: This Field Definition <strong>File</strong><br />

- defines the import's file */<br />

- (FROMFILE) field start and end positions. */<br />

-*********************************************************/<br />

- (FROMFILE) field start and end positions. */<br />

-FILE MYLIB/MYFILE */<br />

field1 1 12 13<br />

field2 14 24 0<br />

field3 25 55 56<br />

field4 78 89 90<br />

field5 100 109 0<br />

field6 110 119 120<br />

field7 121 221 0<br />

*END<br />

The following is a brief explanation of the<br />

Field Definition <strong>File</strong> format:<br />

- = Comment line<br />

*END = End of definition, this must be included<br />

Field Starting Ending Null<br />

Name Position Position Character Position<br />

_________________________________________________________<br />

field1 1 12 13<br />

field2 14 24 None<br />

field3 25 55 56<br />

field4 78 89 90<br />

field5 100 109 None<br />

field6 110 119 120<br />

field7 121 221 None<br />

Field Name<br />

This name is the name of the to-file field name.<br />

Starting Position<br />

This is the starting position for the field in the import file of each record.<br />

This is the byte position.<br />

Ending Position<br />

This is the ending position for the field in the import file of each record.<br />

This is the byte position.<br />

Null Character Position<br />

This is the position for the NULL value for the field in the import file of<br />

each record. The value zero specifies that NULL does not have a value.<br />

The value in the import file can be ’Y’ or ’N’.<br />

’Y’ means the field is NULL. ’N’ means the field is not NULL.<br />

Each column must be separated by a blank character.<br />

Notes on the CPYTOIMPF command<br />

The Copy To Import <strong>File</strong> (CPYTOIMPF) command reads data from a user from-file<br />

and copies it into an import file. The number of jobs used for copy is one. The data<br />

of the import file can be formatted by delimiters or it can be in a fixed format. A<br />

“Notes on the delimited import file (CPYTOIMPF command)” on page 147 has a<br />

series of characters (delimiters) that are used to define where fields begin and end.<br />

See “Restrictions for the CPYTOIMPF command” on page 148 for more<br />

information.<br />

146 <strong>File</strong> <strong>Management</strong> V4R5

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

Saved successfully!

Ooh no, something went wrong!