ILE COBOL Programmer's Guide

Conditional Expressions

Because condition-names (level-88 entries) can refer to data items that contain DBCS characters, you can use the condition-name condition to test this data. (See VALUE Clause.) Follow the rules listed in the WebSphere Development Studio: ILE COBOL Reference for using conditional variables and condition-names.

You can use DBCS data items or mixed literals as the operands in a relation condition. Because COBOL treats mixed data as alphanumeric, all comparisons occur according to the rules for alphanumeric operands. DBCS data items can only be compared to other DBCS data items. Keep the following in mind:

See "SPECIAL-NAMES" paragraph in the WebSphere Development Studio: ILE COBOL Reference for more information.

You can use class conditions and switch status conditions as described in the WebSphere Development Studio: ILE COBOL Reference.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]