[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] Windows 7 Cobol version of "Hello World"?
From: |
john Culleton |
Subject: |
Re: [open-cobol-list] Windows 7 Cobol version of "Hello World"? |
Date: |
Tue, 16 Apr 2013 09:12:39 -0400 |
On Tue, 16 Apr 2013 00:17:10 -0400
Fast Primes <address@hidden> wrote:
> Is there a Cobol version of generating a "Hello World" in Windows 7
> from the command line? Alex
>
don't know why the regular COBOL display statement wuldn't work.
I don't have a Win 7 partition up right now, but try compiling
this:
000010 IDENTIFICATION DIVISION.
000020 PROGRAM-ID. TEMPLATE.
000030 AUTHOR. JOHN CULLETON.
000040 INSTALLATION. WEXFORDPRESS
000045 Eldersburg MD.
000047*SECURITY. Copyright 2006 John R. Culleton, Jr.
000050*REMARKS.
000060* THIS IS A TEMPLATE FOR OPEN COBOL AND HTCOBOL.
000070*ENVIRONMENT DIVISION.
000080
000090*CONFIGURATION SECTION.
000100*SOURCE-COMPUTER.
000110* Linux.
000120*OBJECT-COMPUTER.
000230* Linux.
000140
000150*INPUT-OUTPUT SECTION.
000160*FILE-CONTROL.
000170* SELECT PRINTFILE ASSIGN TO PRINTER.
000180 DATA DIVISION.
000190
000200 FILE SECTION.
000210
000220 WORKING-STORAGE SECTION.
000230
000240 PROCEDURE DIVISION.
000250 001-MAIN-PROCEDURE.
000260 DISPLAY "Hello World!".
000270 STOP RUN.
--
John Culleton
Wexford Press
Free list of books for self-publishers:
http://wexfordpress.net/shortlist.html
PDF e-book: "Create Book Covers with Scribus"
available at http://www.booklocker.com/books/4055.html