You can use the COPY statement to copy source text that contains DBCS characters into a COBOL program. When you do, make sure that you specify the name of the copy book using alphanumeric data, and that you specify these names according to the rules stated in the WebSphere Development Studio: ILE COBOL Reference.
Use the Format 2 COPY statement to copy fields defined in the data description specifications (DDS). DBCS (value in column 35 of the DDS form is G) and mixed data items (the value in column 35 of the DDS form is O) are copied into a COBOL program in the PICTURE X(n) format. If *PICGGRAPHIC is selected, DBCS data items (format G) are copied in the PICTURE G(n) format. The compiler listing does not indicate that these fields contain DBCS characters, unless a field is a key field. In those cases, the system prints an O in the comment table for keys.
DBCS-graphic data items are copied into a COBOL program in the PICTURE X(n) format. The compiler listing indicates that these fields contain graphic data. See DBCS-Graphic Fields for a description of the DBCS-graphic data type.
You can put DBCS characters in text comments that are copied from DDS if the associated DDS field has comments.
If you specify the REPLACING phrase of the COPY statement, consider the following:
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.