6.1 ACCEPT and DISPLAY

To enter data via the console during a program run, use the ACCEPT verb, e.g:
ACCEPT W-DATA-IN

To display data on the console during a run use the DISPLAY verb, i.e:
DISPLAY W-DATA-OUT

To place text with the outputed data you would code:
DISPLAY 'Inputed data is ' W-DATA-OUT


1. Getting started 7. File handling
2. COBOL basics 8. Debugging COBOL
3. The Four Divisions 9. Useful links
4. Defining Data Part 1 10. Sample Code
5. Defining Data Part 2 11. Feedback
6. Commands and logic 12. Quick reference
   Awards    HOME
Copyright Timothy R P Brown 2000 - 2005: Web design in Glasgow, Scotland by 404i