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.

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

v Two adjacent field delimiters (no data in between).<br />

v A field delimiter followed by a record delimiter (no data in between), an<br />

empty string.<br />

v A field of all blanks<br />

If the field is null, the following is true:<br />

v If the record’s output field is not nullable and the import is a null field,<br />

the record is not to be copied, and an error is signaled.<br />

Delimiters<br />

v A delimiter cannot be a blank<br />

v A string delimiter cannot be the same as a field delimiter, record<br />

delimiter, date separator, or time separator.<br />

v A string delimiter can enclose all non-numeric fields (character, date,<br />

time, and so forth). The string delimiter character should not be<br />

contained within the character string.<br />

v A field delimiter and a record delimiter can be the same character.<br />

v The defaults for delimiters are as follows:<br />

– String is: ″ Double quote.<br />

– Field is: , Comma.<br />

– Decimal point is: . Period.<br />

– Record is *EOR End of record.<br />

v If the data type of the from is CHARACTER, OPEN, EITHER, or ONLY,<br />

all double byte data must be contained within string delimiters or shift<br />

characters (for OPEN, EITHER, ONLY data type).<br />

Numeric Field<br />

v Numeric fields can be imported in decimal or exponential form.<br />

v Data to the right of the decimal point may be truncated depending on<br />

the output data format.<br />

v Decimal points are either a period or a comma (command option).<br />

v Signed numeric fields are supported, + or -.<br />

Character or Varcharacter Fields<br />

v Fields too large to fit in the output fields are truncated (right). The<br />

system sends a diagnostic message.<br />

v An empty string is defined as two string delimiters with no data<br />

between them.<br />

v For the system to recognize a character as a starting string delimiter, it<br />

must be the first non-blank character in the field. For example, ’abc’ with<br />

’ as the delimiter is the same as abc.<br />

v Data after an ending string delimiter and before a field or record<br />

delimiter is discarded.<br />

IGC or VarIGC Fields<br />

v The system copies data from the from-file to the to-file. If any of the<br />

data is not valid, the system generates a mapping error.<br />

v Data located between the Shift Out and Shift In characters is treated as<br />

double-byte data. This data is also not parsed for delimiters. The Shift<br />

characters in this case become ″string delimiters″.<br />

Graphic, VarGraphic Fields<br />

The system copies the data from the from-file to the to-file.

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

Saved successfully!

Ooh no, something went wrong!