COBOL program different figurative constants

Program which shows the different figurative constants in COBOL

IDENTIFICATION DIVISION.

PROGRAM-ID. PGM2.

AUTHOR. Indus Computer Services.

*TYPES OF FIGURATIVE CONSTANT

ENVIRONMENT DIVISION.

DATA DIVISION.

WORKING-STORAGE SECTION.

77 FZERO PIC 9(5) VALUE ZERO.

77 FSPACE PIC X(3) VALUE SPACE.

77 FQUOTE PIC X(2) VALUE QUOTE.

PROCEDURE DIVISION.

DISPLAY FZERO.

DISPLAY FSPACE.

DISPLAY FQUOTE.

STOP RUN.

0 comments:

Post a Comment