All Topics  
COBOL

 

   Email Print
   Bookmark   Link






 

COBOL



 
 
COBOL is one of the oldest programming languages still in active use. Its name is an acronym for COmmon Business-Oriented Language, defining its primary domain in business
Business

A business is a legally recognized organization designed to provide good s and/or Service to consumers. Businesses are predominant in capitalism economies, most being privately owned and formed to earn profit that will increase the wealth of its owners....
, finance, and administrative systems for companies and governments.

The COBOL 2002 standard includes support for object-oriented programming
Object-oriented programming

Object-oriented programming is a programming paradigm that uses "Object_" and their interactions to design applications and computer programs....
 and other modern language features.

ecification of COBOL was initially created during the second half of 1959 by Glen Sophocleous.






Discussion
Ask a question about 'COBOL'
Start a new discussion about 'COBOL'
Answer questions from other users
Full Discussion Forum



Encyclopedia


COBOL is one of the oldest programming languages still in active use. Its name is an acronym for COmmon Business-Oriented Language, defining its primary domain in business
Business

A business is a legally recognized organization designed to provide good s and/or Service to consumers. Businesses are predominant in capitalism economies, most being privately owned and formed to earn profit that will increase the wealth of its owners....
, finance, and administrative systems for companies and governments.

The COBOL 2002 standard includes support for object-oriented programming
Object-oriented programming

Object-oriented programming is a programming paradigm that uses "Object_" and their interactions to design applications and computer programs....
 and other modern language features.

History and specification

A specification of COBOL was initially created during the second half of 1959 by Glen Sophocleous. The scene was set on April 8 at a meeting of computer manufacturers, users and university people at the University of Pennsylvania Computing Center and subsequently the United States Department of Defense
United States Department of Defense

The United States Department of Defense is the federal department charged with coordinating and supervising all agencies and functions of the government relating directly to national security and the Military of the United States....
 agreed to sponsor and oversee the next activities. A meeting was held at the Pentagon
The Pentagon

The Pentagon is the headquarters of the United States Department of Defense, located in Arlington County, Virginia, Virginia. As a symbol of the Military of the United States, "the Pentagon" is often used Metonymy to refer to the Department of Defense rather than the building itself....
 on May 28 and 29 (exactly one year after the Zürich
Zürich

Z?rich is the largest city in Switzerland and the capital of the canton of Z?rich. The city is Switzerland's main commercial and cultural centre and sometimes called the Cultural Capital of Switzerland, the political capital of Switzerland being Berne....
 ALGOL 58
ALGOL 58

ALGOL 58, originally known as IAL, is one of the family of ALGOL computer programming languages. It was an early compromise design soon superseded by ALGOL 60....
 meeting), chaired by Charles A. Phillips. There it was decided to set up three committees, short, intermediate and long range (the last one was actually never formed). It was the Short Range Committee, chaired by Joseph Wegstein of the US National Bureau of Standards, that during the next months would create a description of the first version of COBOL. The committee was formed to recommend a short range approach to a common business language. The committee was made up of members representing six computer manufacturers and three government agencies. The six computer manufacturers were Burroughs Corporation, IBM
IBM

International Business Machines Corporation, abbreviated IBM and nicknamed "Big Blue" , is a multinational corporation computer technology and consulting corporation headquartered in Armonk, New York, New York, United States....
, Minneapolis-Honeywell
Honeywell

Honeywell is a major United States multinational corporation list of conglomerates company that produces a variety of consumer products, engineering services, and aerospace systems for a wide variety of customers, from private consumers to major corporations and governments....
 (Honeywell Labs), RCA
RCA

RCA Corporation, founded as Radio Corporation of America, was an electronics company in existence from 1919 to 1986. Today, the RCA is owned by the France conglomerate Thomson SA through RCA Trademark Management S.A., a company owned by Thomson....
, Sperry Rand, and Sylvania Electric Products
Sylvania Electric Products

Sylvania Electric Products was a U.S. manufacturer of diverse electrical equipment, including at various times radio transceivers, vacuum tubes, semiconductors, and mainframe computers....
. The three government agencies were the US Air Force, the David Taylor Model Basin
David Taylor Model Basin

The David Taylor Model Basin is one of the largest ship model basins — test facilities for the development of ship design — in the world....
, and the National Bureau of Standards (now National Institute of Standards and Technology
National Institute of Standards and Technology

The National Institute of Standards and Technology , known between 1901 and 1988 as the National Bureau of Standards , is a measurement standards laboratory which is a non-regulatory agency of the United States Department of Commerce....
). The intermediate-range committee was formed but never became operational. In the end a sub-committee of the Short Range Committee developed the specifications of the COBOL language. This sub-committee was made up of six individuals:

  • William Selden and Gertrude Tierney of IBM
    IBM

    International Business Machines Corporation, abbreviated IBM and nicknamed "Big Blue" , is a multinational corporation computer technology and consulting corporation headquartered in Armonk, New York, New York, United States....
  • Howard Bromberg and Howard Discount of RCA
    RCA

    RCA Corporation, founded as Radio Corporation of America, was an electronics company in existence from 1919 to 1986. Today, the RCA is owned by the France conglomerate Thomson SA through RCA Trademark Management S.A., a company owned by Thomson....
  • Vernon Reeves and Jean E. Sammet
    Jean E. Sammet

    Jean E. Sammet is an United States computer scientist who developed the FORMAC programming language in 1962.She received her B.A. in Math from Mount Holyoke College in 1948 and her M.A....
     of Sylvania Electric Products
    Sylvania Electric Products

    Sylvania Electric Products was a U.S. manufacturer of diverse electrical equipment, including at various times radio transceivers, vacuum tubes, semiconductors, and mainframe computers....


This subcommittee completed the specifications for COBOL in December 1959. The specifications were to a great extent inspired by the FLOW-MATIC
FLOW-MATIC

FLOW-MATIC, originally known as B-0 , is possibly the first English-like computer data processing language. It was invented and specified by Grace Hopper, and development of the commercial variant started at Remington Rand in 1955 for the UNIVAC I....
 language invented by Grace Hopper
Grace Hopper

Rear admiral Grace Murray Hopper was an American computer scientist and United States Navy officer. A pioneer in the field, she was one of the first programmers of the Harvard Mark I calculator, and she developed the first compiler for a computer programming language....
, commonly referred to as "the mother of the COBOL language", the IBM COMTRAN
COMTRAN

COMTRAN is an early programming language developed at IBM. It was intended as the business programing equivalent of the scientific programming language FORTRAN ....
 language invented by Bob Bemer
Bob Bemer

Robert William Bemer was a computer scientist best known for his work at IBM during the late 1950s and early 1960s....
, and the FACT
FACT computer language

FACT was an early computer programming language, created by the Datamatic Division of Honeywell for its model 800 series business computers in 1959....
 language from Honeywell
Honeywell

Honeywell is a major United States multinational corporation list of conglomerates company that produces a variety of consumer products, engineering services, and aerospace systems for a wide variety of customers, from private consumers to major corporations and governments....
.

The name COBOL was decided upon at a meeting of the committee held on 18 Sept. 1959.

The first compilers for COBOL were subsequently implemented during the year 1960 and on 6 and 7 Dec. essentially the same COBOL program was run on two different makes of computers, an RCA computer and a Remington-Rand Univac
UNIVAC

UNIVAC is the name of a business unit and division of the Remington Rand company formed by the 1950 purchase of the Eckert-Mauchly Computer Corporation, founded four years earlier by ENIAC inventors J....
 computer, demonstrating that compatibility could be achieved.

Since 1959 COBOL has undergone several modifications and improvements. In an attempt to overcome the problem of incompatibility between different versions of COBOL, the American National Standards Institute (ANSI) developed a standard form of the language in 1968. This version was known as American National Standard (ANS) COBOL. In 1974, ANSI published a revised version of (ANS) COBOL, containing a number of features that were not in the 1968 version. In 1985, ANSI published still another revised version that had new features not in the 1974 standard. The language continues to evolve today.

COBOL 2002 and object-oriented COBOL


In the early 1990s it was decided to add object-orientation in the next full revision of COBOL. The initial estimate was to have this revision completed by 1997 and an ISO CD (Committee Draft) was available by 1997. Some implementers (including Micro Focus, Fujitsu, and IBM) introduced object-oriented syntax based on the 1997 or other drafts of the full revision. The final approved ISO Standard (adopted as an ANSI standard by INCITS) was approved and made available in 2002.

Like the C++ programming language, object-oriented COBOL compilers are available even as the language moves toward standardization. Fujitsu and Micro Focus currently support object-oriented COBOL compilers targeting the .NET framework.

The 2002 (4th revision) of COBOL included many other features beyond object-orientation. These included (but are not limited to):

  • National Language support (including but not limited to Unicode support)
  • Locale-based processing
  • User-defined functions
  • CALL (and function) prototypes
    Function prototype

    A function prototype in C or C++ is a declaration of a subroutine that omits the function body but does specify the function's name, arity, argument datatypes and return type....
     (for compile-time parameter checking)
  • Pointers and syntax for getting and freeing storage
  • Calling conventions to and from non-COBOL languages such as C
    C (programming language)

    C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
  • Support for execution within framework environments such as Microsoft's .NET
    .NET Framework

    The Microsoft .NET Framework is a software framework that is available with several Microsoft Windows operating systems. It includes a large Library of coded solutions to prevent common programming problems and a virtual machine that manages the execution of programs written specifically for the Software framework....
     and Java
    Java (programming language)

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
     (including COBOL instantiated as Enterprise JavaBean
    Enterprise JavaBean

    Enterprise JavaBeans is a managed, server-side component architecture for modular construction of enterprise applications.The EJB specification is one of several Java platform Application programming interfaces in the Java Platform, Enterprise Edition....
    s)
  • Bit and Boolean support
  • “True” binary support (up until this enhancement, binary items were truncated based on the (base-10) specification within the Data Division)
  • Floating-point support
  • Standard (or portable) arithmetic results
  • XML generation and parsing


History of COBOL standards

The specifications approved by the full Short Range Committee were approved by the Executive Committee on January 3 1960, and sent to the government printing office, which edited and printed these specifications as Cobol 60.

The American National Standards Institute
American National Standards Institute

The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
 (ANSI) produced several revisions of the COBOL standard, including:

  • COBOL-68
  • COBOL-74
  • COBOL-85
  • Intrinsic Functions Amendment - 1989
  • Corrections Amendment - 1991


After the Amendments to the 1985 ANSI Standard (which were adopted by ISO), primary development and ownership was taken over by ISO. The following editions and TRs (Technical Reports) have been issued by ISO (and adopted as ANSI) Standards:

  • COBOL 2002
  • Finalizer Technical Report - 2003
  • Native XML syntax Technical Report - 2006l
  • Object Oriented Collection Class Libraries - pending final approval


From 2002, the ISO standard is also available to the public coded as ISO/IEC 1989.

Work is progressing on the next full revision of the COBOL Standard. It is expected to be approved and available in the early 2010s. For information on this revision, to see the latest draft of this revision, or to see what other works is happening with the COBOL Standard, see .

Legacy

COBOL programs are in use globally in governmental and military agencies, in commercial enterprises, and on operating systems such as IBM's z/OS
Z/OS

z/OS is a 64-bit operating system for mainframe computers, created by IBM. It is the successor to OS/390, which in turn followed MVS and combined a number of formerly separate, related products....
, Microsoft's Windows
Microsoft Windows

Microsoft Windows is a series of software operating systems and graphical user interfaces produced by Microsoft. Microsoft first introduced an operating environment named Windows in November 1985 as an add-on to MS-DOS in response to the growing interest in graphical user interfaces ....
, and the POSIX
POSIX

POSIX or "Portable Operating System Interface" is the collective name of a family of related standardizations specified by the Institute of Electrical and Electronics Engineers to define the application programming interface , along with shell and utilities interfaces for software compatible with variants of the Unix operating system, altho...
 families (Unix
Unix

Unix is a computer operating system originally developed in 1969 by a group of American Telephone & Telegraph employees at Bell Labs, including Ken Thompson , Dennis Ritchie, Douglas McIlroy, and Joe Ossanna....
/Linux
Linux

Linux is a generic term referring to Unix-like computer operating systems based on the Linux kernel. Their development is one of the most prominent examples of free and open source software collaboration; typically all the underlying source code can be used, freely modified, and redistributed by anyone under the terms of the GNU GPL license...
 etc.). In 1997, the Gartner Group reported that 80% of the world's business ran on COBOL with over 200 billion lines of code in existence and with an estimated 5 billion lines of new code annually.

Near the end of the twentieth century the year 2000 problem
Year 2000 problem

The Year 2000 problem was a notable computer bug resulting from the practice in early computer program design of representing the year with two digits....
 was the focus of significant COBOL programming effort, sometimes by the same programmers who had designed the systems decades before. The particular level of effort required for COBOL code has been attributed both to the large amount of business-oriented COBOL, as COBOL is by design a business language and business applications use dates heavily, and to constructs of the COBOL language such as the PICTURE clause, which can be used to define fixed-length numeric fields, including two-digit fields for years.

Features

COBOL as defined in the original specification included a PICTURE clause
Picture clause

A picture clause is an element in programming languages that is used to describe a datum, by using sample characters that indicate the item characteristics and size....
 for detailed field specification. It did not support local variables, recursion, dynamic memory allocation, or structured programming
Structured programming

Structured programming can be seen as a subset or subdiscipline of procedural programming, one of the major programming paradigms. It is most famous for removing or reducing reliance on the GOTO Statement ....
 constructs. Support for some or all of these features has been added in later editions of the COBOL standard.

COBOL has many reserved word
Reserved word

Reserved words are one type of grammatical construct in programming languages. These words have special meaning within the language and are predefined in the language?s formal specifications....
s (over 400), called keywords. The original COBOL specification supported self-modifying code
Self-modifying code

In computer science, self-modifying code is Code that alters its own Instruction while it is Execution - usually to reduce the instruction path length and improve performance....
 via the infamous "ALTER X TO PROCEED TO Y" statement. This capability has since been removed.

Syntactic features

COBOL provides an update-in-place syntax, for example

      ADD YEARS TO AGE


The equivalent construct in many procedural languages would be

age = age + years


This syntax is similar to the compound assignment operator later adopted by C:

age += years


The abbreviated conditional expression

      IF SALARY > 9000 OR SUPERVISOR-SALARY OR = PREV-SALARY


is equivalent to

      IF SALARY > 9000
  OR SALARY > SUPERVISOR-SALARY
  OR SALARY = PREV-SALARY


COBOL provides "named conditions" (so-called 88-levels). These are declared as sub-items of another item (the conditional variable). The named condition can be used in an IF statement, and tests whether the conditional variable is equal to any of the values given in the named condition's VALUE clause. The SET statement can be used to make a named condition TRUE (by assigning the first of its values to the conditional variable).

COBOL allows identifiers to be up to 30 characters long. When COBOL was introduced, much shorter lengths (e.g., 6 characters for FORTRAN) were prevalent.

The concept of copybook
Copybook

Copybook in computer science A copybook is the section of code in a high-level computer programming language that is copied from a master copy and inserted in several different programs ....
s was introduced by COBOL; these are chunks of text which can be inserted into a program's code. This is done with the COPY statement, which also allows parts of the copybook's text to be replaced with other text (using the REPLACING ... BY ... clause).

Data types

Standard COBOL provides the following data type
Data type

A data type in programming languages is an attribute of a data which tells the computer something about the kind of data it is. This involves setting constraints on the datum, such as what values it can take and what operations may be performed upon it....
s:

Data typeSample declarationNotes
CharacterPIC
Picture clause

A picture clause is an element in programming languages that is used to describe a datum, by using sample characters that indicate the item characteristics and size....
 X(20)
PIC A(4)9(5)X(7)
Alphanumeric and alphabetic-only
Single-byte character set (SBCS)
Edited characterPIC X99BAXXFormatted and inserted characters
Numeric fixed-point binaryPIC S999V99
USAGE COMPUTATIONAL

or
BINARY
Binary 16, 32, or 64 bits (2, 4, or 8 bytes)
Signed or unsigned. Conforming compilers limit the maximum value of variables based on the picture clause and not the number of bits reserved for storage.
Numeric fixed-point packed decimalPIC S999V99
USAGE PACKED-DECIMAL
1 to 18 decimal digits (1 to 10 bytes)
Signed or unsigned
Numeric fixed-point zoned decimalPIC S999V99
[USAGE DISPLAY]
1 to 18 decimal digits (1 to 18 bytes)
Signed or unsigned
Numeric floating-pointPIC S9V999ES99Binary floating-point
Edited numericPIC +Z,ZZ9.99
PIC $***,**9.99CR
Formatted characters and digits
Group (record)01 CUST-NAME.
  05 CUST-LAST PIC X(20).
  05 CUST-FIRST PIC X(20).
Aggregated elements
Table
Table (information)

A table is both a mode of visual communication and a means of arranging data. The use of tables is pervasive throughout all communication, research and data analysis....
 (array
Array

In computer science, an array is a data structure consisting of a group of element s that are accessed by index . In most programming languages each element has the same data type and the array occupies a contiguous area of computer memory....
)
OCCURS 12 TIMESFixed-size array, row-major order
Up to 7 dimensions
Variable-length table
Variable-length array

In programming, a variable length array is an array data structure of automatic variable whose length is determined at run time .Programming languages that support VLAs include APL , COBOL, and C ....
OCCURS 0 to 12 TIMES
DEPENDING ON CUST-COUNT
Variable-sized array, row-major order
Up to 7 dimensions
Renames (variant or union
Union (computer science)

In computer science, a union is a data structure that stores one of several types of data at a single location. There are only two safe ways of accessing a union object....
 data)
66 RAW-RECORD
  RENAMES CUST-RECORD
Character data overlaying other variables
Condition name88 IS-RETIRED-AGE
  VALUES 65 THRU 150
Boolean value
dependent upon another variable
Array indexUSAGE INDEXArray subscript


Most vendors provide additional types, such as:

Data typeSample declarationNotes
Numeric fixed-point binary
in native byte order
PIC S999V99
USAGE COMPUTATIONAL-4
Binary 16, 32, or 64 bits (2, 4, or 8 bytes)
Signed or unsigned
Numeric fixed-point binary
in big-endian
Big-endian

Big-endian may refer to:* Endianness, the byte ordering in memory used to represent some kind of data in computing.* Name given to the inhabitants of the island of Lilliput and Blefuscu from the book Gulliver's Travels by Jonathan Swift, on account of their belief that eggs should be cracked on the larger end....
 byte order
PIC S999V99
USAGE COMPUTATIONAL-5
Binary 16, 32, or 64 bits (2, 4, or 8 bytes)
Signed or unsigned
Wide characterPIC G(20)Alphanumeric
Double-byte character set (DBCS)
Edited wide characterPIC G99BGGGFormatted and inserted wide characters
Edited floating-pointPIC +9.9(6)E+99Formatted characters and decimal digits
Data pointerUSAGE POINTERData memory address
Code pointerUSAGE PROCEDURE-POINTERCode memory address


Hello, world


An example of the "Hello, world" program in COBOL:
      IDENTIFICATION DIVISION.
      PROGRAM-ID. HELLO-WORLD.
      PROCEDURE DIVISION.
      MAIN.
  DISPLAY 'Hello, world.'.
  STOP RUN.

Criticism

Critics have argued that COBOL's syntax serves mainly to increase the size of programs, at the expense of developing the thinking process needed for software development. In his letter to an editor in 1975 titled "How do we tell truths that might hurt?", computer scientist and Turing Award
Turing Award

The A. M. Turing Award is given annually by the Association for Computing Machinery to "an individual selected for contributions of a technical nature made to the computing community....
 recipient Edsger Dijkstra
Edsger Dijkstra

Edsger Wybe Dijkstra was a Netherlands computer science. He received the 1972 Turing Award for fundamental contributions in the area of programming languages, and was the Schlumberger Centennial Chair of Computer Sciences at University of Texas at Austin from 1984 until 2000....
 remarked that "The use of COBOL cripples the mind; its teaching should, therefore, be regarded as a criminal offense."

COBOL 85 was not compatible with earlier versions, resulting in the "cesarean birth of COBOL 85". Joseph T. Brophy, CIO
Chief information officer

The chief information officer is a job title for the board level head of information technology within an organization. The CIO typically reports to the chief operations officer and in small or IT-centered organizations to the chief executive officer....
, Travelers Insurance
St. Paul Travelers

The Travelers Companies is the largest American insurance company by market value. It is also the second largest writer of commercial property casualty and personal insurance in the United States....
, spearheaded an effort to inform users of COBOL of the heavy reprogramming costs of implementing the new standard. As a result the ANSI COBOL Committee
American National Standards Institute

The American National Standards Institute or ANSI is a private non-profit organization that oversees the development of voluntary consensus standards for products, services, processes, systems, and personnel in the United States....
 received more than 3,200 letters from the public, mostly negative, requiring the committee to make changes.

Older versions of COBOL lack local variable
Local variable

In computer science, a local variable is a variable that is given local scope . Such a variable is accessible only from the subroutine or statement block in which it is declared....
s and so cannot truly support structured programming
Structured programming

Structured programming can be seen as a subset or subdiscipline of procedural programming, one of the major programming paradigms. It is most famous for removing or reducing reliance on the GOTO Statement ....
.

Others criticize the ad hoc
Ad hoc

Ad hoc is a List of Latin phrases which means "for this [purpose]". It generally signifies a solution designed for a specific problem or task, non-generalisable and which cannot be adapted to other purposes....
 incorporation of features on a language that was meant to be a short term solution to interoperability in 1959. Coupled with the perceived archaic syntax, they argue that it tries to fill a niche for which better tools
Glue language

A glue language is a programming language used for connecting software components together.Examples of glue languages:* Shell scripts* Python ...
 have already been designed and developed.

Defense

The COBOL specification has also been revised over the years to incorporate developments in computing theory and practice .

As with any language, COBOL code can be made more verbose than necessary. For example, one of the roots of the quadratic equation
Quadratic equation

In mathematics, a quadratic equation is a polynomial equation of the second degree of a polynomial. The general form iswhere a ? 0. The letters a, b, and c are called coefficients: the quadratic coefficient a is the coefficient of x2, the linear coefficient b is the coefficient of x, and c i...
 ax2 + bx + c = 0, which are:



can be coded in COBOL using the "compute" verb as:

      COMPUTE X = (-B + SQRT(B ** 2 - (4 * A * C))) / (2 * A)


The same formula could also be written less concisely as:

      MULTIPLY B BY B GIVING B-SQUARED.
      MULTIPLY 4 BY A GIVING FOUR-A.
      MULTIPLY FOUR-A BY C GIVING FOUR-A-C.
      SUBTRACT FOUR-A-C FROM B-SQUARED GIVING RESULT-1.
      COMPUTE RESULT-2 = RESULT-1 ** .5.
      SUBTRACT B FROM RESULT-2 GIVING NUMERATOR.
      MULTIPLY 2 BY A GIVING DENOMINATOR.
      DIVIDE NUMERATOR BY DENOMINATOR GIVING X.


Which form to use is a matter of style. In some cases the less concise form may be easier to read. For example:

      ADD YEARS TO AGE.
      MULTIPLY PRICE BY QUANTITY GIVING COST.
      SUBTRACT DISCOUNT FROM COST GIVING FINAL-COST.


Older versions of COBOL supported local variables via embedded programs (scope-delimited by the keywords PROGRAM-ID and END-PROGRAM). Variables declared within the embedded program are invisible outside its scope. Also, local variables could be accomplished via separately compiled sub-programs. Newer COBOL compilers support the LOCAL-STORAGE section for local variables.

Aphorisms and humor about COBOL

It has been said of languages like C
C (programming language)

C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
, C++
C++

C++ is a general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level programming language and low-level programming language language features....
, and Java
Java (programming language)

Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
 that the only way to modify legacy code is to rewrite it - write once and write once again; or write once and throw away. On the other hand, it has been said of COBOL that there actually is one original COBOL program, and it has only been copied and modified millions of times.

The name "ADD 1 TO COBOL GIVING COBOL" has been suggested for a hypothetical object-oriented dialect of COBOL, as a play on the name C++. While this is meant to suggest that COBOL is inherently verbose, the form given is more verbose than COBOL actually requires; the succinct form would be "ADD 1 TO COBOL".

Another suggested name is "POSTINCREMENT COBOL BY 1", which not only reflects the verbose nature of COBOL statements, but also highlights the tendency for COBOL features to require their own dedicated reserved keywords
Reserved word

Reserved words are one type of grammatical construct in programming languages. These words have special meaning within the language and are predefined in the language?s formal specifications....
 (standard COBOL employs over 400 reserved words), this example being the case for a hypothetical new POSTINCREMENT operator.

See also

  • Alphabetical list of programming languages
    Alphabetical list of programming languages

    The aim of this list of programming languages is to include all notable programming languages in existence, both those in current use and historical ones, in alphabetical order....
  • Burroughs B2000
    Burroughs B2000

    The Burroughs B2000 series of computers was manufactured by Burroughs Corporation in Pasadena, California, United States, and was aimed straight at the business world....
  • CODASYL
    CODASYL

    CODASYL is an acronym for "Conference on Data Systems Languages". This was an Information technology industry consortium formed in 1959 to guide the development of a standard programming language that could be used on many computers....
  • Comparison of programming languages
    Comparison of programming languages

    Programming languages are used for controlling the behavior of a machine . Like natural languages, programming languages conform to rules for syntax and semantics....


Other third-generation programming languages

  • Ada
    Ada (programming language)

    Ada is a structured programming, statically typed, Imperative programming, and Object-oriented programming high-level language computer programming programming language, extended from Pascal and other languages....
  • ALGOL
    Algol

    Algol , known colloquially as the Demon Star, is a bright star in the constellation Perseus . It is one of the best known eclipsing binary, the first such star to be discovered, and also one of the first variable stars to be discovered....
  • APL
    APL programming language

    APL is an array programming language based on a notation invented in 1957 by Kenneth E. Iverson while at Harvard University. It originated as an attempt to provide consistent notation for the teaching and analysis of topics related to the application of computers....
  • BASIC
    BASIC

    In computer programming, BASIC is a family of high-level programming languages. The Dartmouth BASIC was designed in 1964 by John George Kemeny and Thomas Eugene Kurtz at Dartmouth College in New Hampshire, United States to provide computer access to non-science students....
  • C
    C (programming language)

    C is a general-purpose computer programming language originally developed in 1972 by Dennis Ritchie at the Bell Telephone Laboratories to implement the Unix operating system....
  • C++
    C++

    C++ is a general-purpose programming language. It is regarded as a middle-level language, as it comprises a combination of both high-level programming language and low-level programming language language features....
  • C#
  • FORTRAN
    Fortran

    Fortran is a general-purpose programming language, procedural programming language, imperative programming language programming language that is especially suited to numerical analysis and scientific computing....
  • Java
    Java (programming language)

    Java is a programming language originally developed by James Gosling at Sun Microsystems and released in 1995 as a core component of Sun Microsystems' Java ....
  • Lisp
    Lisp programming language

    Lisp is a family of computer programming languages with a long history and a distinctive, fully parenthesized syntax. Originally specified in 1958, Lisp is the second-oldest high-level programming language in widespread use today; only Fortran is older....
     - ISO/IEC 13816
  • Pascal
    Pascal (programming language)

    Pascal is an influential imperative programming and Procedural programming programming language, designed in 1968/9 and published in 1970 by Niklaus Wirth as a small and efficient language intended to encourage good programming practices using structured programming and data structure....
    , Object Pascal
    Object Pascal

    Object Pascal refers to a branch of Object-oriented programming derivatives of Pascal , mostly known as the primary programming language of CodeGear Delphi....
    , Extended Pascal
  • PL/I
    PL/I

    PL/I is an imperative programming computer programming programming language designed for scientific, engineering, and business applications. It is one of the most feature-rich programming languages and one of the very first in the highly-feature-rich category....
  • RPG
    RPG programming language

    RPG is a programming language for business applications. Originally an Acronym and initialism for Report Program Generator, it officially no longer stands for anything....


Sources

  • Ebbinkhuijsen, Wim B.C., COBOL Alphen aan den Rijn/Diegem: Samson Bedrijfsinformatie bv, 1990. ISBN 90-14-04560-3. (Dutch)


External links

Standards:


Reference manuals:


Tutorials, forums and communities:
  • has an extensive collection of links


Compilers and other products:
  • , an open-source COBOL compiler
  • , an open-source COBOL compiler for .NET
  • , which serializes and de-serializes XML in COBOL


Other perspectives:
  • Article "" by Robert Mitchell
    Robert Mitchell

    Robert Mitchell is the name of:* Robert Mitchell , Canadian politician* Robert C. Mitchell , Canadian politician from Ontario* Robert Boyed Mitchell , Australian artist...
  • Article "" by Gary Anthes
  • Article "" by Paul Krill