掌握Mainframe系列之 10分钟学习COBOL

本文介绍了COBOL编程语言在商业领域的应用及其结构特点。COBOL擅长处理高精度业务交易,如银行和信用卡处理,因其结构严谨,易于阅读和追踪。文章通过10分钟学习计划,讲解了COBOL的编程规则、结构、保留字、语句、段落和章节,帮助初学者快速理解。
摘要由CSDN通过智能技术生成

开个坑 打算把掌握Mainframe里有趣的教程搬过来 今天先搬COBOL

About COBOL

COBOL is not a general purpose programming language. You wouldn’t write an operating system, AI algorithm, or racing sim in it. Where it excels is turning out high-precision business transactions like the ones you find in banks, credit card processors, and other financial institutions. Its rigid structure and adherence to a very specific specification mean that it’s also easy to read and trace through, something that helps with audits and compliance. Today, COBOL runs much of the world’s highest-earning businesses, and once you start to see how it was architected, you’ll begin to see just why.

COBOL 严谨的结构具有易读性以及良好的代码可追踪性;有利于审计与商业执行。 因此今天许多需求高精度的商业领域如银行、信用卡机构等普遍采用COBOL作为事务处理语言。

十分钟学习COBOL 视频

https://www.bilibili.com/video/BV1UK4y157vN

示例代码3.5
掌握Mainframe系列教程中的3.5节

       IDENTIFICATION DIVISION.
       PROGRAM-ID.    ADDONE.
       AUTHOR.        STUDENT.
      *
       ENVIRONMENT DIVISION.
      *
       INPUT-OUTPUT SECTION.
       FILE-CONTROL.
           SELECT PRT-LINE ASSIGN TO PRTLINE.
           SELECT PRT-DONE ASSIGN TO PRTDONE.

       DATA DIVISION.
       FILE SECTION.
       FD  PRT-LINE RECORD CONTAINS 80 CHARACTERS RECORDING MODE F.
       01  PRT-REC        PIC X(80) VALUE SPACES.

       FD  PRT-DONE RECORD CONTAINS <
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值