Logo 
Search:

Cobol Articles

Submit Article
Home » Articles » Cobol » Homework HelpRSS Feeds

PROGRAM DISPLAYS ON THE PRINTER A MESSAGE ENTERED BY THE USER

Posted By: Adelgiese Fischer     Category: Cobol     Views: 4964

write a PROGRAM DISPLAYS ON THE PRINTER A MESSAGE ENTERED BY THE USER.

Code for PROGRAM DISPLAYS ON THE PRINTER A MESSAGE ENTERED BY THE USER in Cobol

       IDENTIFICATION DIVISION.

       PROGRAM-ID. PROG402.
       ENVIRONMENT DIVISION.
       CONFIGURATION SECTION.
       SPECIAL-NAMES.
           PRINTER IS PRINTER-DISPLAY.
       DATA DIVISION.

       01  W005-MESSAGE-FIELD             PIC X(32).
       PROCEDURE DIVISION.
       DISPLAY-ACCEPTED-MESSAGE.
           DISPLAY "PROGRAM PROG402:  PRINT DISPLAY OUTPUT:"
                                      UPON PRINTER-DISPLAY. 
           ACCEPT W005-MESSAGE-FIELD.
           DISPLAY W005-MESSAGE-FIELD UPON PRINTER-DISPLAY.
           STOP RUN.

  
Share: 



Adelgiese Fischer
Adelgiese Fischer author of PROGRAM DISPLAYS ON THE PRINTER A MESSAGE ENTERED BY THE USER 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!