没有合适的资源?快使用搜索试试~ 我知道了~
cobol reference.pdf
5星 · 超过95%的资源 需积分: 13 98 下载量 100 浏览量
2008-02-15
23:25:10
上传
评论 1
收藏 3.17MB PDF 举报
温馨提示
试读
598页
cobol reference.pdf
资源详情
资源评论
资源推荐
Enterprise COBOL for z/OS and OS/390 IBM
Language Reference
Version 3 Release 2
SC27-1408-01
Enterprise COBOL for z/OS and OS/390 IBM
Language Reference
Version 3 Release 2
SC27-1408-01
Note!
Before using this information and the product it supports, be sure to read the general
information under “Notices” on page 541.
Second Edition (September 2002)
This edition applies to Version 3 Release 2 of IBM Enterprise COBOL for z/OS and OS/390 (program number
5655-G53) and to all subsequent releases and modifications until otherwise indicated in new editions. Make sure that
you are using the correct edition for the level of the product.
You can order publications online at www.ibm.com/shop/publications/order, or order by phone or fax. IBM
Software Manufacturing Solutions takes publication orders between 8:30 a.m. and 7:00 p.m. Eastern Standard Time
(EST). The phone number is (800) 879-2755. The fax number is (800) 445-9269.
You can also order publications through your IBM representative or the IBM branch office serving your locality.
Copyright International Business Machines Corporation 1991, 2002. All rights reserved.
US Government Users Restricted Rights – Use, duplication or disclosure restricted by GSA ADP Schedule Contract
with IBM Corp.
Contents
About this document ............. vi
IBM extensions . . . . . . . . . . . . . . . . . . . . vi
Obsolete language elements
............. vi
How to read the syntax diagrams .......... vii
DBCS notation . . . . . . . . . . . . . . . . . . . viii
Acknowledgment
. . . . . . . . . . . . . . . . . . . ix
Summary of changes ................. ix
How to send your comments ............. x
Part 1. COBOL language structure . 1
Characters . . . . . . . . . . . . . . . . . . . . . 2
Character encoding units ................ 3
Character-strings . . . . . . . . . . . . . . . . 4
COBOL words with single-byte characters ...... 4
COBOL words with DBCS characters ......... 5
User-defined words . . . . . . . . . . . . . . . . . . . 5
System-names . . . . . . . . . . . . . . . . . . . . . . 6
Function-names . . . . . . . . . . . . . . . . . . . . . 6
Reserved words . . . . . . . . . . . . . . . . . . . . . 7
Figurative constants . . . . . . . . . . . . . . . . . . 8
Special registers . . . . . . . . . . . . . . . . . . . . 10
Literals . . . . . . . . . . . . . . . . . . . . . . . . 22
PICTURE character-strings . . . . . . . . . . . . . . 30
Comments . . . . . . . . . . . . . . . . . . . . . . . 31
Separators . . . . . . . . . . . . . . . . . . . . 32
Sections and paragraphs
......... 35
Sentences, statements, and entries .......... 35
Reference format . . . . . . . . . . . . . . . 37
Sequence number area ................ 37
Indicator area . . . . . . . . . . . . . . . . . . . . . 37
Area A . . . . . . . . . . . . . . . . . . . . . . . . 38
Area B . . . . . . . . . . . . . . . . . . . . . . . . . 39
Area A or Area B ................... 42
Scope of names ................ 44
Types of names .................... 44
External and internal resources ........... 46
Resolution of names ................. 47
Referencing data names, copy
libraries, and Procedure Division
names . . . . . . . . . . . . . . . . . . . . . . 49
Uniqueness of reference ............... 49
Data attribute specification .............. 59
Transfer of control .............. 60
Millennium Language Extensions and
date fields
. . . . . . . . . . . . . . . . . . . 62
Millennium Language Extensions syntax ...... 62
Terms and concepts ................. 63
Part 2. COBOL source unit
structure
. . . . . . . . . . . . . . . . . . . . 67
COBOL program structure ........ 68
Nested programs . . . . . . . . . . . . . . . . . . . 70
COBOL class definition structure .... 73
COBOL method definition structure
.. 77
Part 3. Identification Division . . . . 79
Identification Division . . . . . . . . . . . . 80
PROGRAM-ID paragraph . . . . . . . . . . . . . . 82
CLASS-ID paragraph . . . . . . . . . . . . . . . . . 84
FACTORY paragraph . . . . . . . . . . . . . . . . . 85
OBJECT paragraph . . . . . . . . . . . . . . . . . . 85
METHOD-ID paragraph . . . . . . . . . . . . . . . 86
Optional paragraphs . . . . . . . . . . . . . . . . . 87
Part 4. Environment Division . . . . 89
Configuration Section . . . . . . . . . . . . 90
SOURCE-COMPUTER paragraph . . . . . . . . . . 91
OBJECT-COMPUTER paragraph . . . . . . . . . . 92
SPECIAL-NAMES paragraph . . . . . . . . . . . . 93
ALPHABET clause . . . . . . . . . . . . . . . . . . 96
SYMBOLIC CHARACTERS clause ......... 98
CLASS clause . . . . . . . . . . . . . . . . . . . . . 98
CURRENCY SIGN clause .............. 99
DECIMAL-POINT IS COMMA clause ....... 100
REPOSITORY paragraph . . . . . . . . . . . . . . 100
Input-Output Section . . . . . . . . . . . . 103
FILE-CONTROL paragraph . . . . . . . . . . . . 104
SELECT clause . . . . . . . . . . . . . . . . . . . 106
ASSIGN clause . . . . . . . . . . . . . . . . . . . 106
RESERVE clause . . . . . . . . . . . . . . . . . . 109
ORGANIZATION clause . . . . . . . . . . . . . . 110
PADDING CHARACTER clause .......... 112
RECORD DELIMITER clause ........... 113
Copyright IBM Corp. 1991, 2002 iii
剩余597页未读,继续阅读
acer5710g
- 粉丝: 15
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论5