COBOL Alphanumeric Data type

COBOL Alphabetic Data Type COBOL Sign Data Type

Advertisements


Alphanumeric data type name is self explanatory which will allow storing a combination of 0 to 9 numbers and A to Z characters.

If any data item declared as Alphanumeric, then it will store the data which is a combination of 0 to 9 numbers and A to Z characters that are used in the program.

Alphanumeric data type uses X to declare the Alphanumeric data item.

The max length of Alphanumeric data type is

Alphanumeric data type declaration will not come with a combination of any other data types.

DISPLAY USAGE clause is applicable for Alphanumeric data type.

Below example to display the constant value with two variable of smaller length and larger length than actual constant length


If any questions on the above, post your queries on Cobol Discussion forum


COBOL Alphabetic Data Type COBOL Sign Data Type

Advertisements