ISO/IEC 1989:2023 情報技術 — プログラミング言語、その環境およびシステム ソフトウェア インターフェイス — プログラミング言語 COBOL | ページ 3

※一部、英文及び仏文を自動翻訳した日本語訳を使用しています。

導入

COBOL はビジネス プログラミング言語として始まりましたが、現在の使用はそれを超えて汎用プログラミング言語にまで広がっています。

COBOL 標準および仕様の全体または一部を複製することに関心のある組織は、本書のアイデアを取扱説明書またはその他の目的の基礎として使用して、自由に複製することができます。ただし、そのようなすべての組織は、そのような出版物の序文の一部として、以下の謝辞の段落全体を転載することが求められます (書評などでこの文書の短い文章を使用する組織は、「COBOL」について言及することが求められます)出典を明示しますが、謝辞を引用する必要はありません):

COBOL は業界言語であり、いかなる会社や企業グループ、あるいはいかなる組織や組織グループの所有物でもありません。

プログラミング システムおよび言語の正確性および機能については、明示的か黙示的かにかかわらず、いかなる寄稿者または CODASYL COBOL 委員会によっても保証されません。また、これに関して投稿者および委員会は一切の責任を負いません。

以下で使用されている著作権で保護されたマテリアルの作者および著作権所有者は、次のとおりです。

  • フローマティック™ 1 ;
  • IBM® 2 Commercial Translator Form No F 28-8013, 1959 年に IBM が著作権を所有。
  • FACT©、DSI 27A5260-2760, 1960 年にミネアポリス ハネウェルによって著作権保護

は、COBOL 仕様でこの資料の全部または一部の使用を特別に許可しています。このような許可は、プログラミング マニュアルまたは類似の出版物における COBOL 仕様の複製および使用にまで及びます。

詳細および追加の変更については、E.2「既存のプログラムに影響を与える可能性がある大幅な変更」および E.3「既存のプログラムに影響を及ぼさない可能性がある大幅な変更」を参照してください。

COBOL 言語のさらなる開発は、言語の使いやすさの向上と、さまざまな言語との相互運用性の要望など、コンピュータ業界全体で開発された関連する技術の進歩の採用に対するユーザーの要求を満たす機能を提供する継続的なプロセスです。オペレーティング システムやその他のプログラミング言語の統合により、開発者は、繰り返す必要のない既存のタスク ソリューションなどの機能を利用できるようになります。

付録 A, 言語要素リスト B, ユーザー定義語で許可される文字、および C, COBOL 文字レパートリーにおける大文字と小文字のマッピングは、この文書の規範部分を形成します。付録 D ~ G は情報提供のみを目的としています。

付録 D「概念」には、主要な機能とより複雑な以前の機能の説明が含まれており、このドキュメントを読む際の出発点として推奨されます。

技術的な変更の完全なリストは付録 E, 実質的な変更リストに記載されています。

以前の COBOL 標準は 2014 年に発行されました。実装者はユーザーの要求に応えて言語拡張機能を提供してきました。したがって、さらなる相違を防ぎ、さまざまな実装間の一貫性と一貫性を確保するために、この文書にはいくつかの変更と拡張が加えられています。

COBOL 言語の開発は、プログラミング言語を仕様化するための正式な技術が発明される前に始まりました。したがって、COBOL 標準は、第 5 項「記述技術」で説明されている独自の記述技術を使用します。これらの手法には、構文と自然言語を記述する一般的な形式が含まれます。

このドキュメントの開発中、既存のプログラムに影響を与える変更を最小限に抑えるために細心の注意が払われました。既存のプログラムに影響を与える可能性のある実質的な変更のほとんどは、以前の COBOL 標準のあいまいさを解決するために導入されました。実質的な変更の詳細は、付録 E, 実質的な変更リストに記載されています。

この文書では、次のような口頭形式が使用されます。

  • 「するものとする」は要件を示します。
  • 「すべき」は推奨を示します。
  • 「できる」は可能性または能力を示します。
  • 「かもしれない」は許可を示します。

「注」とマークされた情報は、文書の理解または使用を支援することを目的としています。第 3 項で使用される「記入上の注意」は、用語データを補足する追加情報を提供し、用語の使用に関する要件を含む場合があります。

Introduction

COBOL began as a business programming language, but its present use has spread well beyond that to a general purpose programming language.

Any organization interested in reproducing the COBOL standard and specifications in whole or in part, using ideas from this document as the basis for an instruction manual or for any other purpose, is free to do so. However, all such organizations are requested to reproduce the following acknowledgment paragraphs in their entirety as part of the preface to any such publication (any organization using a short passage from this document, such as in a book review, is requested to mention"COBOL" in acknowledgment of the source, but need not quote the acknowledgment):

COBOL is an industry language and is not the property of any company or group of companies, or of any organization or group of organizations.

No warranty, expressed or implied, is made by any contributor or by the CODASYL COBOL Committee as to the accuracy and functioning of the programming system and language. Moreover, no responsibility is assumed by any contributor, or by the committee, in connection therewith.

The authors and copyright holders of the copyrighted materials used herein:

  • FLOW-MATIC™ 1 ;
  • IBM® 2 Commercial Translator Form No F 28-8013, copyrighted 1959 by IBM;
  • FACT©, DSI 27A5260-2760, copyrighted 1960 by Minneapolis-Honeywell

have specifically authorized the use of this material in whole or in part, in the COBOL specifications. Such authorization extends to the reproduction and use of COBOL specifications in programming manuals or similar publications.

For more details and additional changes, see E.2, Substantive changes potentially affecting existing programs and E.3, Substantive changes probably not affecting existing programs.

Further development of the COBOL language is a continuing process to provide facilities to satisfy user demand for the improved usability of the language and the adoption of relevant advances in techniques developed in the computer industry as a whole, including the desirability of interoperability with a wide variety of operating systems and other programming languages to enable developers to take advantage of their facilities, including pre-existing task solutions that then don't need to be repeated.

Annexes A, Language element lists B, Characters permitted in user-defined words, and C, Mapping of uppercase letters to lowercase letters in the COBOL character repertoire form a normative part of this document. Annexes D through G are for information only.

Annex D, Concepts, includes an explanation of major features as well as the more complicated prior features and is the suggested starting point for the reading of this document.

A complete list of technical changes is given in Annex E, Substantive changes list.

The previous COBOL standard was published in 2014. Implementors have provided language extensions in response to the demands of their users. Several changes and extensions have, therefore, been made in this document to prevent further divergence, and to ensure consistency among, and coherence within, various implementations.

Development of the COBOL language began before the invention of formal techniques for specification of programming languages. Hence, the COBOL standard uses its own description techniques, which are described in Clause 5, Description techniques. These techniques involve general formats, which describe the syntax, and natural language.

During the development of this document, great care was taken to minimize changes that would affect existing programs. Most substantive changes that potentially affect existing programs were introduced to resolve ambiguities in the previous COBOL standard. Details of the substantive changes are given in Annex E, Substantive changes list.

In this document, the following verbal forms are used:

  • ‘shall’ indicates a requirement;
  • ‘should’ indicates a recommendation;
  • ‘can’ indicates a possibility or a capability;
  • ‘may’ indicates a permission.

Information marked as ‘NOTE’ is intended to assist the understanding or use of the document. ‘Notes to entry’ used in Clause 3 provide additional information that supplements the terminological data and can contain requirements relating to the use of a term.