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.

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

Variable-Length<br />

Character From-Field<br />

(maximum length of<br />

eight)<br />

00XXXXXXXX<br />

03ABCXXXXX<br />

07ABCDEFGX<br />

Variable-Length<br />

DBCS-Only From-<br />

Field (maximum<br />

length of eight)<br />

04XXXX<br />

08<br />

mapped<br />

mapped<br />

mapped<br />

mapped<br />

mapped<br />

Variable-Length<br />

Character To-Field<br />

(maximum length<br />

of five)<br />

00XXXXX<br />

03ABCXX<br />

05ABCDE<br />

04X<br />

05X<br />

Mapping variable-length fields to fixed-length fields<br />

If the data length of the from-field is less than or equal to the to-field length, the<br />

data is copied to the fixed-length to-field and padded to ensure data integrity.<br />

If the length of the from-field data is greater than the to-field length, the from-field<br />

data is copied to the to-field and truncated on the right in a manner that ensures<br />

data integrity.<br />

Variable-Length<br />

Character From-Field<br />

(maximum length of<br />

eight)<br />

00XXXXXXXX<br />

04ABCDXXXX<br />

08ABCDEFGH<br />

mapped<br />

mapped<br />

mapped<br />

Variable-Length<br />

DBCS-Open To-<br />

Field (maximum<br />

length of five)<br />

RV2H082-1<br />

Fixed-Length<br />

Character To-Field<br />

(length of six)<br />

XXXXXX<br />

ABCDXX<br />

ABCDEF<br />

RV2H083-1<br />

Mapping fixed-length fields to variable-length fields<br />

If the to-field has a maximum length greater than or equal to the from-field length,<br />

the from-field data is copied to the data portion of the to-field and padded to the<br />

right with single-byte blanks. The to-field length is set to the length of the<br />

from-field length.<br />

Fixed-Length<br />

Character<br />

From-Field<br />

(length of six)<br />

XXXXXX<br />

ABCXXX<br />

ABCDEF<br />

mapped<br />

mapped<br />

mapped<br />

Variable-Length<br />

Character To-Field<br />

(maximum length<br />

of nine)<br />

06XXXXXXXXX<br />

06ABCXXXXXX<br />

06ABCDEFXXX<br />

RV2H084-1

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

Saved successfully!

Ooh no, something went wrong!