The 1st Day of Learning Cobol

十一月 21, 2007 by Raymond
Filed under: Cobol 

     首先,Cobol是什么?Cobol是Common Business Oriented Language的缩写。与Java,C++这样的OO语言相比,主要的作用是用于处理大批量的记录。现在主要应用与大型机和小型机上面。

        Cobol中主要分为四个DIVISION分别是:

        1.IDENTIFICATION DIVISION
        2.ENVIRONMENT DIVISION
        3.DATA DIVISION
        4.PROCEDURE DIVISION
        下面是一个最简单的Cobol程序,用于输出”Hello World”:
        IDENTIFICATION DIVISION.
        PROGRAM-ID. HELLO.
        PROCEDURE DIVISION.
        DISPLAYHELLO.
        DISPLAY “HELLO WORLD”.
        STOP RUN.

该程序在大机上为:

photo1.GIF
VN:F [1.9.3_1094]
Rating: 0.0/5 (0 votes cast)
VN:F [1.9.3_1094]
Rating: 0 (from 2 votes)
  • Share/Bookmark

Comments

2 Comments on The 1st Day of Learning Cobol

  1. 11 on 周三, 21st 十一 2007 16:15
  2. well done

  3. Quasar Chunawalla on 周日, 12th 七 2009 21:57
  4. Nice and informative website.. Especially, I liked the article about VisionPlus Software for the credit-card industry.

Tell me what you're thinking...
and oh, if you want a pic to show with your comment, go get a gravatar!





  • 分类目录

  • 功能

  • 联络订阅

    google reader
    订阅到抓虾
    订阅到鲜果
    订阅到飞鸽
    bloglines
    my yahoo
    netvibes