GB/T 4092: Evolution and historical versions
Standard ID | Contents [version] | USD | STEP2 | [PDF] delivered in | Standard Title (Description) | Status | PDF |
GB/T 4092-2008 | English | RFQ |
ASK
|
3 days [Need to translate]
|
Information technology -- Programming languages -- COBOL
| Valid |
GB/T 4092-2008
|
GB/T 4092.1-1992 | English | RFQ |
ASK
|
3 days [Need to translate]
|
Programing language COBOL - Introductory information
| Obsolete |
GB/T 4092.1-1992
|
PDF similar to GB/T 4092-2008
Basic data Standard ID | GB/T 4092-2008 (GB/T4092-2008) | Description (Translated English) | Information technology -- Programming languages -- COBOL | Sector / Industry | National Standard (Recommended) | Classification of Chinese Standard | L74 | Classification of International Standard | 35.060 | Word Count Estimation | 340,327 | Date of Issue | 2008-07-28 | Date of Implementation | 2009-01-01 | Older Standard (superseded by this standard) | GB/T 4092-1992 | Quoted Standard | GB/T 1988-1998; GB/T 7574-2008; ISO/IEC 9945-2: 1993; ISO/IEC TR 10176: 2001; ISO/IEC 10646 | Adopted Standard | ISOIEC 1989-2002, NEQ | Regulation (derived from) | Announcement of Newly Approved National Standards No. 12 of 2008 (No. 125 overall) | Issuing agency(ies) | General Administration of Quality Supervision, Inspection and Quarantine of the People's Republic of China, Standardization Administration of the People's Republic of China | Summary | This standard specifies the syntax and semantics of COBOL. This standard specifies: COBOL Compiler group for writing, compile a compiler group performance, perform run- unit effect, requirements conforming implementation to meet its definition language elements, meaning not explicitly defined language elements, dependent on the processor performance language elements. |
GB/T 4092-2008: Information technology -- Programming languages -- COBOL---This is a DRAFT version for illustration, not a final translation. Full copy of true-PDF in English version (including equations, symbols, images, flow-chart, tables, and figures etc.) will be manually/carefully translated upon your order.
Information technology. Programming languages. COBOL
ICS 35.060
L74
National Standards of People's Republic of China
Replacing GB/T 4092-1992
information Technology
Programming language COBOL
(ISO /IEC 1989.2002, NEQ)
Posted 2008-07-28
2009-01-01 implementation
Administration of Quality Supervision, Inspection and Quarantine of People's Republic of China
Standardization Administration of China released
Table of Contents
Preface Ⅶ
1 Scope 1
2 Normative references 1
Three pairs of the standard compliance 1
3.1 Compliance achieve 1
3.2 compliant compiler Group 4
Running Unit 3.3 compliant 4
3.4 Relationship compiled in line with the group in line with realization of 4
3.5 in line with the relationship run unit and implemented in line 4
4 Terms and definitions 4
5 Technical 19
5.1 The general format 19
5.2 Rule 21
5.3 arithmetic expression 21
5.4 Operation 21 integers
5.5 Non-Formal Description 22
5.6 hyphens body 22
The auxiliary forms 5.7 EXPRESS 22
6 reference format 23
6.1 Indicator 23
6.2 fixed form reference format 24
6.3 free-form reference format 26
6.4 Conversion Logic 27
7 pragma facilities 28
7.1 text processing 28
7.2 compiler directive 33
8 Language Basics 43
8.1 Character Set 43
Local environment 46 8.2
8.3 Glossary element 47
8.4 references 53
8.5 Data description and representation 68
8.6 Scope and life cycle data 74
8.7 Operators 77
8.8 Expression 78
8.9 91 reserved words
8.10 context sensitive word 93
8.11 internal function name 95
8.12 compiler instruction word 96
8.13 External Warehouse 96
9 input and output objects and user-defined functions 97
9.1 File 97
9.2 screen 106
9.3 108 Object
9.4 User-defined functions 113
10 Group structure compile 113
10.1 compiler and run-time module unit 113
10.2 source unit 114
Source unit 114 included 10.3
10.4 source element and runtime elements 114
10.5 COBOL compiler set 115
10.6 marks the end of 117
11 identification section 118
11.1 identification portion structure 118
11.2 CLASS-ID paragraph 119
11.3 FACTORY section 120
11.4 FUNCTION-ID section 120
11.5 INTERFACE-ID paragraph 120
11.6 METHOD-ID paragraph 121
11.7 OBJECT section 122
11.8 OPTIONS section 122
11.9 PROGRAM-ID paragraph 123
12 Ministry of Environment 124
Structure 12.1 environment 124
12.2 Configuration Section 124
12.3 Input Output Section 131
13 Data section 141
13.1 data structure portion 142
13.2 Explicit and implicit attributes 142
13.3 Files section 142
13.4 working storage section 145
13.5 Local Storage 145
13.6 connection section 146
13.7 Report Section 147
13.8 Screen Section 148
13.9 Constant paragraph 148
13.10 record description section 149
Data models layer 149 13.11 77
13.12 Reports describe paragraph 149
13.13 Reports Column Description subsection 150
13.14 Data Description section 152
13.15 screen description section 155
Data section 158 clause 13.16
14 process unit 208
14.1 Process unit structure 208
14.2 Statement 211
14.3 Process 211
14.4 procedural statements and sentences 211
14.5 Executive 214
Common phrases and statements 14.6 features 225
Compliance 14.7 parameters and return items 228
14.8 Statement 232
15 293 internal functions
15.1 Function Type 293
293 15.2 Function Arguments
294 15.3 Return Value
15.4 date conversion function 295
15.5 295 induction function
15.6 ABS function 300
15.7 ACOS function 300
15.8 ANNUITY function 300
15.9 ASIN function 301
15.10 ATAN function 301
15.11 BOOLEAN-OF-INTEGER function 301
15.12 BYTE-LENGTH function 301
15.13 CHAR function 302
15.14 CHAR-NATIONAL function 302
15.15 COS function 303
15.16 CURRENT-DATE function 303
15.17 DATE-OF-INTEGER function 304
15.18 DATE-TO-YYYYMMDD function 304
15.19 DAY-OF-INTEGER function 304
15.20 DAY-TO-YYYDDD function 305
15.21 DISPLAY-OF function 305
15.22 E function 306
15.23 EXCEPTION-FILE function 306
15.24 EXCEPTION-FILE-N function 306
15.25 EXCEPTION-LOCATION function 307
15.26 EXCEPTION-LOCATION-N function 307
15.27 EXCEPTION-STATEMENT function 308
15.28 EXCEPTION-STATUS function 308
15.29 EXP function 308
15.30 EXP10 function 308
15.31 FACTORIAL function 309
15.32 FRACTION-PART function 309
15.33 HIGHEST-ALGEBRAIC function 309
15.34 INTEGER function 310
15.35 INTEGER-OF-BOOLEAN function 310
15.36 INTEGER-OF-DATE function 310
15.37 INTEGER-OF-DAY function 311
15.38 INTEGER-PART function 311
15.39 LENGTH function 312
15.40 LOCALE-COMPARE function 312
15.41 LOCALE-DATE function 313
15.42 LOCALE-TIME function 313
15.43 LOG function 314
15.44 LOG10 function 314
15.45 LOWER-CASE function 314
15.46 LOWEST-ALGEBRAIC function 315
15.47 MAX function 315
15.48 MEAN function 316
15.49 MEDIAN function 316
15.50 MIDRANGE function 316
15.51 MIN function 317
15.52 MOD function 317
15.53 NATIONAL-OF function 318
15.54 NUMVAL function 318
15.55 NUMVAL-C function 319
15.56 NUMVAL-F function 320
15.57 ORD function 321
15.58 ORD-MAX function 321
15.59 ORD-MIN function 321
15.60 PI function 322
15.61 PRESENT-VALUE function 322
15.62 RANDOM function 322
15.63 RANGE function 322
15.64 REM function 323
15.65 REVERSE function 323
15.66 SIGN function 323
15.67 SIN function 324
15.68 SQRT function 324
15.69 STANDARD-COMPARE function 324
15.70 STANDARD-DEVIATION function 325
15.71 SUM function 325
15.72 TAN function 326
15.73 TEST-DATE-YYYYMMDD function 326
15.74 TEST-DAY-YYYYDDD function 326
15.75 TEST-NUMVAL function 327
15.76 TEST-NUMVAL-C function 327
15.77 TEST-NUMVAL-F function 328
15.78 UPPER-CASE function 328
15.79 VARIANCE function 329
15.80 WHEN-COMPILED function 329
15.81 YEAR-TO-YYYY function 330
16 standard class 330
16.1 BASE class 331
Foreword
The Standard and ISO /IEC 1989.2002 "Information technology - Programming language COBOL" of non-equivalent.
This standard replaces GB/T 4092-1992.
This standard and GB/T 4092-1992 the differences are as follows.
--- The standard configuration of the 4092-1992 GB/T made a major adjustment. GB/T 4092-1992 is divided into 12 parts, the present
Standard to integrate them into a standard;
--- Achieve increased compliance requirements;
--- Part of the term to do a larger adjustment. Which increases the term 116, revised the terms 39, delete the term 242;
--- Adds object-oriented programming features;
--- Enhanced additional features for anomaly detection and reporting;
--- Enhanced algorithm portability;
--- Increased local character data type for processing multi-bit coded character set;
--- Increased primitive binary and floating-point data types;
--- Increasing user-defined functions;
--- Adds file sharing and record locking;
--- Increasing the internal functions;
--- Enhanced interoperability with other languages.
The standard proposed by the People's Republic of China Ministry of Information Industry.
This standard by the National Information Technology Standardization Technical Committee.
This standard was drafted. China Electronics Standardization Institute.
The main drafters of this standard. Fuqing Hua, Peng Jing, Li Haibo, Xie Qian, Zhang new exhibition.
This standard was first published in 1983, in 1992 made the first amendment to the Second Amendment.
information Technology
Programming language COBOL
1 Scope
This standard specifies the COBOL syntax and semantics.
This standard specifies.
--- Written form COBOL compile groups;
--- Compile a compiler group performance;
--- Run effect execution unit;
--- Compliance requirements to achieve to meet the language elements of its definition;
--- Meaning of language elements that are not explicitly defined;
--- Dependent processor performance language elements.
The standard does not specify.
--- COBOL compiler set in writing, the manner in which the processor compile them into executable code;
--- Methods, modules connect or bind to a statement on the time of activation function or program is running, when appropriate procedures or methods in the series
When the translation when unknown binding except in the case the inevitable happened;
When --- parameterized class is expanded;
--- Define a local environment on the processor and make it available mechanisms;
--- Error message, tag information or form or content of the warning message;
The form and the content list generated --- compile time (if any);
--- Implementors proposed form of documents conforming to this standard product;
Sharing resources between --- run unit, except for the file.
2 Normative references
The following documents contain provisions which, through reference in this standard and become the standard terms. For dated references, subsequent
Amendments (not including errata content) or revisions do not apply to this standard, however, encourage the parties to the agreement are based on research
Whether the latest versions of these documents. For undated reference documents, the latest versions apply to this standard.
GB/T 1988-1998 Technical information interchange bit coded character set (eqv ISO /IEC 646.1991)
GB/T 7574-2008 Information processing - File structure with tape and label (ISO 1001. 1986, IDT)
ISO /IEC 9945-2.1993 Information technology - Portable Operating System Interface (POSIX) - Part 2. Commands and Utilities
ISO /IEC TR10176.2001 Information technology - Guidelines for the preparation of programming language standards
ISO /IEC 10646.2003 Information technology - Universal Multiple-Octet Coded Character Set (UCS)
ISO /IEC 14651.2001 Information technology - International string ordering and comparison string comparison method and generic templating can be customized
Sort description
Three pairs of the standard compliance
This chapter sets out to achieve compliance with this standard shall meet the requirements. And defines a number of conditions, under these conditions the compiler or runtime group
Unit conforms to the standard features they use.
3.1 conforming implementation
In order to comply with this standard, the standard COBOL implementations should provide standardized elements in Chapter 6 to Chapter 16 provisions, and meet 3.1.1 ~
|