MOVE data from variable to other variable in COBOL

Program to MOVE a data from one variable to the other variable in COBOL
IDENTIFICATION DIVISION.
PROGRAM-ID. PGM3.
AUTHOR. Indus Computer Services.
*THE MOVE VERB.
*TO MOVE THE DATA FROM ONE TO OTHER
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
77 A PIC 9 VALUE 5.
77 B PIC 9 VALUE ZERO.
PROCEDURE DIVISION.

MOVE A TO B.
DISPLAY B.
STOP RUN.

0 comments:

Post a Comment