COBOL COMP/COMPUTATION

COBOL DISPLAY Computation COBOL COMP-1

Advertisements


COMP usage clause will be called as BINARY or COMPUTATION.

COMP usage clause applicable to Numeric data type only.

COMP usage is a binary representation of data.

The data in COMP variables stored memory in pure binary format.

The memory allocation for COMP USAGE is like below.

Let’s take an example for displaying all data types which are passing through program and see how it is after writing to the program.

Practical Example:

Advertisements