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.

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

When you copy DBCS files to alphanumeric files, the system sends you an<br />

informational message describing the difference in file types.<br />

Either the FMTOPT(*MAP) or FMTOPT(*NOCHK) option of the copy file function<br />

must be specified for copies from a physical or logical file to a physical file when<br />

there are fields with the same name in the from-file and to-file, but the data type<br />

for fields is as shown in the following table.<br />

From-<strong>File</strong> Field Data Type To-<strong>File</strong> Field Data Type<br />

A (character) J (DBCS-only)<br />

O (DBCS-open) J (DBCS-only)<br />

O (DBCS-open) E (DBCS-either)<br />

E (DBCS-either) J (DBCS-only)<br />

J (DBCS-only) G (DBCS-graphic)<br />

O (DBCS-open) G (DBCS-graphic)<br />

E (DBCS-either) G (DBCS-graphic)<br />

G (DBCS-graphic) J (DBCS-only)<br />

G (DBCS-graphic) O (DBCS-open)<br />

G (DBCS-graphic) E (DBCS-either)<br />

G (UCS-2 graphic) A (Character (CCSID non-65535))<br />

G (UCS-2 graphic) J (DBCS-open (CCSID non-65535))<br />

G (UCS-2 graphic) E (DBCS-either (CCSID non-65535))<br />

G (UCS-2 graphic) J (DBCS-only (CCSID non-65535))<br />

G (UCS-2 graphic) G (DBCS-graphic)<br />

A (Character (CCSID non-65535)) G (UCS-2 graphic)<br />

O (DBCS-open (CCSID non-65535)) G (UCS-2 graphic)<br />

E (DBCS-either (CCSID non-65535)) G (UCS-2 graphic)<br />

J (DBCS-only (CCSID non-65535)) G (UCS-2 graphic)<br />

G (DBCS-graphic) G (UCS-2 graphic)<br />

When you use FMTOPT(*MAP) on the CPYF command to copy data to a<br />

DBCS-only field or DBCS-graphic field, the corresponding field in the from-file<br />

must not be:<br />

v Less than a 2-byte character field<br />

v An odd-byte-length character field<br />

v An odd-byte-length DBCS-open field<br />

Note: DBCS-graphic is the only type allowed to be CCSID 65535 when using<br />

FMTOPT(*MAP) copying from or to a UCS-2 graphic field. UCS-2 graphic<br />

cannot be CCSID 65535.<br />

If you attempt to copy with one of these specified in the from-field, an error<br />

message is sent.<br />

When you copy double-byte data from one database file to another with the<br />

FMTOPT(*MAP) parameter specified, double-byte data will be copied correctly.<br />

The system will perform correct padding and truncation of double-byte data to<br />

ensure data integrity.<br />

When using the CPYF command with FMTOPT(*MAP) to copy a DBCS-open field<br />

to a graphic field, a conversion error occurs if the DBCS-open field contains any<br />

SBCS data (including blanks).

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

Saved successfully!

Ooh no, something went wrong!