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.

Processing double-byte characters<br />

Due to the large number of double-byte characters, the system needs more<br />

information to identify each double-byte character than is needed to identify each<br />

alphanumeric character.<br />

There are two types of double-byte characters: basic and extended. These<br />

characters are usually processed by the device on which the characters are<br />

displayed or printed.<br />

Basic double-byte characters<br />

Basic characters are frequently used double-byte characters that reside in the<br />

hardware of a DBCS-capable device. The number of double-byte characters stored<br />

in the device varies with the language supported and the storage size of the<br />

device. A DBCS-capable device can display or print basic characters without using<br />

the extended character processing function of the operating system.<br />

Extended double-byte characters<br />

When processing extended characters, the device requires the assistance of the<br />

system. The system must tell the device what the character looks like before the<br />

device can display or print the character. Extended characters are stored in a DBCS<br />

font table, not in the DBCS-capable device. When displaying or printing extended<br />

characters, the device receives them from the DBCS font table under control of the<br />

operating system.<br />

Extended character processing is a function of the operating system that is required<br />

to make characters stored in a DBCS font table available to a DBCS-capable device.<br />

To request extended character processing, specify the double-byte extended<br />

character parameter, IGCEXNCHR(*YES), on the file creation command when you<br />

create a display (CRTDSPF command) or printer file (CRTPRTF command) that<br />

processes double-byte data. Because IGCEXNCHR(*YES) is the default value, the<br />

system automatically processes extended characters unless you instruct it<br />

otherwise. You can change this file attribute by using a change file (CHGDSPF or<br />

CHGPRTF) or override file (OVRDSPF or OVRPRTF) command. For example, to<br />

override the display file DBCSDSPF so that extended characters are processed,<br />

enter:<br />

OVRDSPF DSPF(DBCSDSPF) IGCEXNCHR(*YES)<br />

Notes:<br />

1. The system ignores the IGCEXNCHR parameter when processing alphanumeric<br />

files.<br />

2. When you use the Japanese 5583 Printer to print extended characters, you must<br />

use the Kanji print function of the Advanced DBCS Printer Support for AS/400<br />

licensed program. Refer to the Kanji Print Function User’s Guide and Reference for<br />

how to use this utility.<br />

What happens when extended double-byte characters are not<br />

processed<br />

When extended characters are not processed, the following happens:<br />

v Basic double-byte characters are displayed and printed.<br />

Appendix B. Double-byte character set support 203

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

Saved successfully!

Ooh no, something went wrong!