Code for Program to print employee details in Cobol
IDENTIFICATION DIVISION.
PROGRAM-ID.
ENVIRONMENT DIVISION.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 EMP-DATA.
02 EMP-NO PIC 9999.
02 EMP-NAME PIC X(10).
02 EMP-AGE PIC X(5).
02 EMP-DOB PIC X(10).
PROCEDURE DIVISION.
MAIN-PARA.
DISPLAY "-----------------------------------------------".
DISPLAY "ENTER YOUR NO".
ACCEPT EMP-NO.
DISPLAY "ENTER YOUR NAME".
ACCEPT EMP-NAME.
DISPLAY "ENTER YOUR AGE".
ACCEPT EMP-AGE.
DISPLAY "ENTER YOUR DOB".
ACCEPT EMP-DOB.
DISPLAY "-----------------------------------------------".
DISP-PARA.
DISPLAY "EMPLOYEE NUMBER :-"EMP-NO.
DISPLAY "EMPLOYEE NAME :-"EMP-NAME
DISPLAY "EMPLOYEE AGE :-"EMP-AGE.
DISPLAY "EMPLOYEE DATE OF BIRTH :-"EMP-DOB.
STOP RUN.