COBOL smallest program

Smallest Program in COBOL

 

PROGRAM

IDENTIFICATION DIVISION.                                         
PROGRAM-ID. PGM000.                                              
PROCEDURE DIVISION.                                              
    DISPLAY 'SMALLEST PROGRAM BY MAINFRAMEWIZARD '               
    STOP RUN.                                                    

OUTPUT



SMALLEST PROGRAM BY MAINFRAMEWIZARD                                                                               

 

Back to COBOL EXAMPLES

COBOL Books on Amazon.com

Comments

Hi vikasji, really this site is too informative. I havnt explore it even 50 percent yet but gradually trying to learn things from this whenever get time.

Comment on Website-

Each time we click on any link we have to scroll down to see the result. Make it in such way that we need not to scroll down... Actually you know that in office I could not scrool thru mouse and also at home in my laptop it is difficult to scroll.. :)

Techincally, you only need the first two lines of this program to get a successfull compile; i.e., the shortest COBOL program is only two lines. Of course, you wont see any output when you run it ;)