Logo 
Search:

Cobol Articles

Submit Article
Home » Articles » Cobol » Homework HelpRSS Feeds

Program to print employee details

Posted By: Raymundo Fischer     Category: Cobol     Views: 5490

Write a Program to print employee details.

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.
  
Share: 


Didn't find what you were looking for? Find more on Program to print employee details Or get search suggestion and latest updates.

Raymundo Fischer
Raymundo Fischer author of Program to print employee details is from Frankfurt, Germany.
 
View All Articles

 
Please enter your Comment

  • Comment should be atleast 30 Characters.
  • Please put code inside [Code] your code [/Code].

 
No Comment Found, Be the First to post comment!