cobol在线编程工具(codecademy编程在线)

http://www.itjxue.com  2023-04-13 01:21  来源:未知  点击次数: 

cobol方面的问题

1. COBOL目前来说还是很有市场的,国内对大型机(陆饥谈Mainframe)的应用还不是很广,COBOL作为大型机上面的主要编程语言还是非常重要的,应该说在国内还是很有前景的。

2. COBOL在全世界范围内都在使肢厅用,楼主不必把范围缩这么小早碰。

3. 国内的大型银行几乎全部用COBOL作为金融交互系统的编写工具,只有中国银行曾经是个例外,曾经因为COBOL程序员不好找被迫将COBOL编写的程学全部改成C语言,但是后来因为COBOL的稳定性远远高于C语言,又再次将程序重新写回来。

Cobol2002用的什么工具

Cobol2002用链肆盯的COBOL工具。雹念

COBOL开发工具没有免费的,因为现在做COBOL开发工具的只有国外,国内没有。在PC上用工具,工具包括cobol85编译器,95编译器,IBM用的是workbench。

上面有一个按钮,一编译就行。在者就是liunx或者unix上,有一个ttermpro,直接make就行。总是在PC机器上,只需要make就行,就可以编译了。

COBOL语言棚和的主要特点是:

COBOL程序将处理对象按一定方式组织成文件,记录在计算机的外部设备上。它通过对数据层次结构的描述,说明同一文件中数据项之间的联系,因而可在数据的任一层次进行检索和处理。

接近英语自然语言。COBOL语言中大量采用普通英语词汇和句型,如描述性子句接近英语主表结构,操作性语句接近英语的祈使句。例如,把A和B两个数据项的内容相加,就写成ADD A TOB。因此COBOL程序看起来很像一篇用英语写的文章,学过英语的人很容易看懂。

cobol 英文资料

COBOL

英文缩写: COBOL (Common business Oriented Language)

中文译名: COBOL语言

解 释: 一种适合于商业及数据处理的类似英语的程序设计语言。这种语言可使商业数据处理过程精确表达。

COBOL(面向袭乎做商业的通用语言,又称为企业管理语言、顷慎数据处理语言等,Common Business Oriented Langauge)是最早的高级编程语言之一,是世界上第一个商用语言。

翻译:English abbreviation: COBOL (Common business Oriented Language)

English translation: COBOL Language

Explanation: a suitable commercial and data processing procedures similar to the English language. This language allows precise expression of commercial data processing.

COBOL (Common Business Oriented Language, also known as enterprise management language, data processing and language, Common Business Oriented Langauge) is the first high-level programming language is one of the world's first commercial language. ..

COBOL的历史

1959年5月,五角大楼委托格雷斯·霍波(G.Hopper)博士领导一个委员会并由Rear Admiral Grace Hopper公司主持开发,并于1961年由美国数据系统语言协会公布。正式发布于1960年4月,称为Cobol-60。

1968年美国国家标准委员会ANSI又通过了新的标准ANSI COBOL X.3.23-1968。

1972年国际标准化组织ISO将其作为ISO COBOL-72。1974年ANSI对COBOL-68作出了修订扩充,形成了ANSI COBOL X3.23-1974,随后1978年ISO采用其形成ISO COBOL-78,后来又提出了ANSI X3.23-85,增加了很多结构化程序设拍衡计的内容,ISO标准ISO1989:1985也采用了该标准。COBOL标准还在不断地改进和完善,最新的标准COBOL 2002主体已经于2002年12月出版,其他部分还在不断地完善之中。现在最新的版本是Cobol-2002。

1963年,美国国家标准研究所(ANSI)进行了标准化,但是ANSI标准很少被遵循;因此,COBOL程序只是部分可移植的。

翻译:The history of COBOL

In May 1959, the Pentagon commissioned格雷斯霍波(G. Hopper) by a committee led by Dr. Rear Admiral Grace Hopper led the development of the company, and in 1961 by the American Association of Data Systems Languages. Officially released in April 1960, known as the Cobol-60.

1968, American National Standards Institute ANSI has adopted a new standard ANSI COBOL X.3.23-1968.

1972 International Organization for Standardization ISO as ISO COBOL-72. 1974 Nian ANSI pairs of COBOL-68 was amended in expanded form ANSI COBOL X3.23-1974, following its formation in 1978, ISO using ISO COBOL-78, and later proposed ANSI X3.23-85, increased the number of structured programming content, ISO standard ISO1989: 1985 also adopted the standard. COBOL standards are continuing to improve and perfect the latest standard COBOL 2002 subjects have been published in December 2002, other parts are still being constantly improved. Now, its latest version of Cobol-2002.

In 1963, the American National Standards Institute (ANSI) has standardized, but the ANSI standard are rarely followed; so, COBOL programs only partially portable.

COBOL的重要性

经过40多年的不断修改、丰富完善和标准化,COBOL已发展为多种版本的庞大语言,在财会工作、统计报表、计划编制、情报检索、人事管理等数据管理及商业数据处理领域,都有着广泛的应用。

COBOL的重要性可以用这句话来描述:世界上70%的数据都是用COBOL语言处理的,并且90%的ATM事务处理用的都是COBOL语言。每天在线处理的COBOL事务有300亿次。500强中有492家(包括全部的100强)使用了COBOL语言,目前在COBOL方面的投资已经超过3万亿美元,,据称用COBOL书写的程序超过了1000亿行,并且以每年大约50亿行代码的速度在增长。

由于COBOL在商业领域的雄厚基础,而且COBOL主要是应用于银行、金融和会计行业等非常重要的商业数据处理领域。所以,即使对于具有相当经验的IT公司来说,重新编写COBOL语言的可靠的应用软件也是不实际或是从商业角度上并不可行的,而且还要花上很长的时间,只要大型机存在,COBOL就不会消失,即使是对电脑界产生巨大影响的“千年虫”(Y2K)也没有改变COBOL的命运。

翻译:The importance of COBOL After 40 years of constant change, rich sound and standardization, COBOL has evolved into multiple versions of a large language, accounting, statistical reporting, planning, information retrieval, personnel management, data management and business data processing , all have a wide range of applications. The importance of COBOL can use these words to describe: The World's 70% of the data is to use COBOL language processing, and 90% of ATM transactions are used in COBOL language. COBOL matters dealt with every day online 300 million times. 500 There are 492 (including all of the 100) uses the COBOL language COBOL investments currently has more than three trillion U.S. dollars, allegedly written in COBOL programs with more than one hundred billion rows, and about 50 per year 100 million lines of code at the rate of growth. Since COBOL strong foundation in the commercial sphere, and COBOL is mainly used in banking, finance and accounting industries are very important business data processing. Therefore, even for considerable experience in IT companies, rewriting COBOL language, the application of reliable software is not practical or not feasible from a business point of view, but also spend a very long time, as long as there is mainframe , COBOL will not disappear, even for the computer industry a tremendous impact on the "millennium bug" (Y2K) did not change the fate of COBOL.

COBOL的特点

COBOL是一种面向数据处理的、面向文件的、面向过程(POL)的高级编程语言,是一种功能很强而又极为冗长的语言。

COBOL适合于具有循环处理周期的环境(例如打印工资支票)以及数据操纵量相当大的环境。COBOL主要应用于商业数据处理领域,对各种类型的数据进行收集、存储、传送、分类、排序、计算及打印报表、输出图象是它的强项。

COBOL语法与英文很接近,即使不懂电脑的人也能看懂程序。

强大的文件处理功能,大量的数据通常以文件的形式存储在磁盘上。

仅提供了加、减、乘、除及乘方这五种简单的算术运算,因而不适于进行科学计算。

未来的COBOL将支持XML等Web时代的新技术。

翻译:The characteristics of COBOL

COBOL is a data-oriented processing, file-oriented, process-oriented (POL) high-level programming language, is a feature very strong but extremely lengthy language.

COBOL for the processing cycle with the cycle of the environment (for example, print pay checks) as well as a large amount of data manipulation environment. COBOL is mainly used in commercial data processing, for various types of data collection, storage, transmission, classification, sorting, calculation and printing reports, the output image is its strength.

COBOL grammar and English is very close, even if people do not understand the computer program can read.

Powerful document processing capabilities, large amounts of data are usually in the form of files stored on disk.

Provided only add, subtract, multiply, divide, and involution of these five simple arithmetic operations, and thus not suitable for scientific computing.

COBOL will support the future of XML and other Web era of new technologies.

COBOL的程序结构

COBOL程序由4部(DIVISION)组成:IDENTIFICATION DIVISION.(标识部)、ENVIRONMENT DIVISION.(环境部)、DATA DIVISION.(数据部)、PROCEDURE DIVISION.(过程部),而每个部又由若干节 (SECTION)组成。

IDENTIFICATION DIVISION.

“PROGRAM-ID”(程序识别ID)、“AUTHOR”(作者名)、“DATE-WRITTEN”(编写日期),这些并直接不影响程序的执行,而是程序的注释 信息。程序注释可以采用任何语言书写,COBOL编译器可以接受。

ENVIRONMENT DIVISION.

用于记载程序可以被运行的计算机环境。“ENVIRONMENT DIVISION.”部包括“CONFIGURATION SECTION”环境节和“INPUT-OUTPUT SECTION”输入输出节。

DATA DIVISION.

用于定义和声明程序所要使用的变量及其他数据。程序要使用的全部变量和数据必须在这里定义。“DATA DIVISION.”部主要包含“FILE SECTION.”和“WORKING-STORAGE SECTION.”节。

如果程序要通过参数接收数据,那么使用“LINKAGE SECTION”来声明。

COBOL的数据种类

COBOL程序的数据,主要有以下3种:

变量(Variables)

常量(Literals)

表意常量(FigurativeConstants)变量和常量自不必说,说说表意常量。使用有特定意思的多个词组合成一个常量的代名词。好处是便于编码人员识别。比如:HIGH-VALUES、LOW-VALUES等可以表达一定意思的名称作为常量代名词。

COBOL变量类型

COBOL的基本变量类型,有以下三种:

数值型(Numeric)

英文字符型(AlphaNumeric)

英文字符串型(Alphabetic)

PROCEDURE DIVISION

用于容纳程序的实际处理代码。需要传入参数时,采用“PROCEDURE DIVISION USING 引数名[,参数名...]”的方式。

因为前3个DIVISION都是注释,却又必须,只到第4个DIVISION“PROCEDURE DIVISION”才真正涉及程序代码,这样的繁琐规定使得COBOL被批评为开场白像老太太裹脚布。但是,基于这样的4个DIVISION的明确记述等的严格形式,COBOL也被公认是可读性强的语言。另外,COBOL的保留字数量庞大,字数过长的保留字太多是COBOL的特征之一。

目前Cobol 就业市场包含以下两种类型:

第一,在旧的 Cobol 代码和新程序之间充当桥梁,这种工作要求人们懂 Cobol,懂那些老 Cobol 程序员所依赖的商业逻辑,同时动新的编程语言,如 Java。

第二是维护旧的 Cobol 代码,并编写新的 Cobol 代码。

翻译:COBOL program structure of COBOL programs from the four (DIVISION) composed of: IDENTIFICATION DIVISION. (ID Department), ENVIRONMENT DIVISION. (Ministry of the Environment), DATA DIVISION. (Data Division), PROCEDURE DIVISION. (The process of Department), and each department also by a number of sections (SECTION) component. IDENTIFICATION DIVISION. "PROGRAM-ID" (identification process ID), "AUTHOR" (author name), "DATE-WRITTEN" (write the date), which do not directly affect the program execution, but the program notes the information. Program notes written in any language can be used, COBOL compiler is acceptable. ENVIRONMENT DIVISION. Recorded program can be used to run computer environment. "ENVIRONMENT DIVISION." Department, including "CONFIGURATION SECTION" Environment Day and "INPUT-OUTPUT SECTION" input-output section. DATA DIVISION. Definitions and declarations for procedures to be used for variables and other data. Program to use all the variables and data must be defined here. "DATA DIVISION." Department consists mainly of "FILE SECTION." And "WORKING-STORAGE SECTION." Festival. If the program is to pass parameters to receive data, then use the "LINKAGE SECTION" to the statement. COBOL data types of COBOL program data, mainly in the following three kinds: variables (Variables) Constants (Literals) ideographic constant (FigurativeConstants) variables and constant self-Needless to say, talk about the ideographic constant. Use of a specific meaning of a constant synthesis of a number of phrases synonymous. The advantage of facilitating coders identified. For example: HIGH-VALUES, LOW-VALUES, etc. can express a certain meaning of the name as synonymous with a constant. COBOL variable type of the basic variable types of COBOL, the following three ways: numeric (Numeric) English character (AlphaNumeric) English string (Alphabetic) PROCEDURE DIVISION is used to accommodate the actual processing procedure code. Need to pass parameters using "PROCEDURE DIVISION USING argument name [, parameter names ...]" way. Because the former are three DIVISION notes, but must be only to the first 4 DIVISION "PROCEDURE DIVISION" really involved in the program code, such as red tape makes COBOL has been criticized for his opening remarks, like the old lady bindings. However, based on these four DIVISION such a clear account of the strict form, COBOL has also been recognized as readable language. In addition, COBOL reserved words large number of long words is a COBOL reserved word too much one of the characteristics. Cobol job market at present contains the following two types: first, in the old Cobol code and to act as a bridge between the new procedures, this kind of work requires people to understand Cobol, understand those old Cobol programmers rely on business logic, while moving the new programming languages such as Java. The second is to maintain the old Cobol code, and the preparation of new Cobol code.

cobol语言编程,帮我写一个完整的程序,谢谢

刚刚写完,经过测试 没有问题

===============================

000010 IDENTIFICATION DIVISION.

000020 PROGRAM-ID. TEST.

000030 ENVIRONMENT DIVISION.

000040 CONFIGURATION SECTION.

000050 INPUT-OUTPUT SECTION.

000060 FILE-CONTROL.

000070 SELECT OPTIONAL I-FILE ASSIGN TO 'd:\STXXX.INFILE'

000080 ORGANIZATION IS LINE SEQUENTIAL.

000090 SELECT OPTIONAL O-FILE ASSIGN TO 'd:\STXXX.OUTFILE'

000100 ORGANIZATION IS LINE SEQUENTIAL.

000110

000120 DATA DIVISION.

000130 FILE SECTION.

000140 FD I-FILE .

000150 01 IN-RECORD.

000160 03 I-NUM PIC X(6).

000170 03 I-NM PIC X(10).

000180 03 I-GRADE-AREA OCCURS 3 TIMES .

000190 05 I-GRADE PIC 9(2)V99.

000200 FD O-FILE .

000210 01 OT-RECORD PIC X(51).

000220 WORKING-STORAGE SECTION.

000230 01 HEAD.

000240 03 FILLER PIC X(10) VALUE "学生编号 ".

000250 03 FILLER PIC X(12) VALUE "姓名 ".

000260 03 FILLER PIC X(7) VALUE "成绩1 ".

000270 03 FILLER PIC X(7) VALUE "成绩2 ".

000280 03 FILLER PIC X(7) VALUE "成绩3 ".

000290 03 FILLER PIC X(8) VALUE "平均成绩".

000300 01 OT-REC.

000310 03 O-NUM PIC X(6).

000320 03 FILLER PIC X(4).

000330 03 O-NM PIC X(10).

000340 03 O-GRADE-AREA OCCURS 4 TIMES .

000350 05 FILLER PIC X(2).

000360 05 O-GRADE PIC 9(2).99.

000370 01 SUM-NUM PIC 9(3)V99.

000380 01 EVR-NUM PIC 9(3)V99.

000390*

000400 PROCEDURE DIVISION.

000410 OPEN INPUT I-FILE.

000420 OPEN OUTPUT O-FILE.

000430*

000440 MOVE HEAD TO OT-RECORD.

000450 WRITE OT-RECORD.

000460*

000470 READ-010.

000480 READ I-FILE

000490 AT END GO TO EXIT-PERFORM.

000500 MOVE SPACE TO OT-REC.

000510 INITIALIZE OT-REC.

000520 MOVE I-NUM TO O-NUM.

000530 MOVE I-NM TO O-NM.

000540 MOVE I-GRADE(1) TO O-GRADE(1).

000550 MOVE I-GRADE(2) TO O-GRADE(2).

000560 MOVE I-GRADE(3) TO O-GRADE(3).

000570 COMPUTE SUM-NUM = I-GRADE(1)

000580 + I-GRADE(2)

000590 + I-GRADE(3).

000600 COMPUTE EVR-NUM = SUM-NUM

000610 / 3.

000620 MOVE EVR-NUM TO O-GRADE(4).

000630 MOVE OT-REC TO OT-RECORD.

000640*

000650 WRITE OT-RECORD.

000660

000670 GO TO READ-010.

000680

000690 EXIT-PERFORM.

000700 CLOSE I-FILE.

000710 CLOSE O-FILE.

000720 STOP RUN.

NEC的COBOL开发工具叫什么

open cobol factory,最新版本应该是闭蔽ver8.4

可以到nec的官方网站轿枣州查询详细资岩此料:

(责任编辑:IT教学网)

更多

推荐时间特效文章