Skip to Content
Custom Search

COBOL-ACCEPT and DISPLAY

Example of ACCEPT and DISPLAY

PROGRAM

IDENTIFICATION DIVISION.                   
PROGRAM-ID. PGM001.                        
AUTHOR. MAINFRAMEWIZARD.                   
DATA DIVISION.                             
WORKING-STORAGE SECTION.                   
01 VAR1 PIC 9(3) VALUE ZEROES.             
PROCEDURE DIVISION.                        
10000-MAIN-PARA.                           
     ACCEPT VAR1.                          
     DISPLAY 'VARIABLE INPUT IS=' VAR1.    
     STOP RUN.                                                      

; ; ; ;

OUTPUT

VARIABLE INPUT IS=10 

 

Back to COBOL examples

Comments

Post new comment

  • Allowed HTML tags: <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd>
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.

Click the +1 button  below to share it with your friends and colleagues

 

Share this if you liked it!

 

Disclaimer



Who's online

There are currently 1 user and 23 guests online.

Online users

  • mowcowdonx
Dr. Radut | page