O'Reilly logo

PROGRAMMING IN COBOL/400: 2nd Edition by Robert A. Stern, Nancy Stern, James Cooper

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Appendix B. COBOL CHARACTER SET AND RESERVED WORDS

EBCDIC CHARACTER SET

EBCDIC, which stands for Extended Binary Coded Decimal Interchange Code and is pronounced eb-ce-dick, is used to represent letters, digits, the character blank, and special characters. The chart shown in Figure B.1 illustrates, in ascending sequence, the EBCDIC collating sequence codes for letters, numbers, and the character blank. In addition, the chart shows the binary representation and hexadecimal codes used by the computer to represent EBCDIC codes.

EBCDIC codes for letters, numbers, character blank, and corresponding binary and hexadecimal codes.

Figure B.1. EBCDIC codes for letters, numbers, character blank, and corresponding binary and hexadecimal codes.

COBOL CHARACTERS

In COBOL, the primary unit of data is the character. In the COBOL/400 language, the letters of the alphabet, digits, and special characters that form the COBOL character set are represented by a subset of the EBCDIC character set. Figure B.2 shows the complete set of COBOL characters with their meanings and uses.

COBOL characters with their meanings and uses.

Figure B.2. COBOL characters with their meanings and uses.

RESERVED WORDS

COBOL/400 incorporates many enhancements that are not incorporated in the ANSI COBOL 85 Standard. Among them are extensions that aid in writing interactive workstation applications as well as support for externally described files.

With these extensions to COBOL/400, ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required