Neha Patil (Editor)

COMTRAN

Updated on
Edit
Like
Comment
Share on FacebookTweet on TwitterShare on LinkedInShare on Reddit
Developer
  
First appeared
  
1957 (1957)

COMTRAN (COMmercial TRANslator) is an early programming language developed at IBM. It was intended as the business programming equivalent of the scientific programming language FORTRAN (FORmula TRANslator). It served as one of the forerunners to the COBOL language. Developed by Bob Bemer, in 1957, the language was the first to feature the programming language element known as a picture clause.

Contents

Contributions to COBOL

Several elements of COMTRAN were incorporated into COBOL:

  • Picture clause.
  • Paragraphing: dividing code into paragraphs (with line breaks not significant).
  • Paragraph names. Assigning names to paragraphs, and jumps (GO TO's) are to a paragraph name, not to a line number.
  • AT END clause on file input operations.
  • Figurative constant HIGH-VALUE.
  • Passing a numeric value (RETURN-CODE) back to the operating system when the program terminates.
  • Picture clause

    A picture clause element defines the length of any given datum, much like a dictionary defines words. In particular a picture clause determines whether the datum contains letters and numbers, and other characteristics of the data, including format, size, and data type.

    Sample program

    This is a sample COMTRAN program, doing payroll calculations.

    Additional reading

  • IBM's Early Computers, by Charles Bashe, Lyle Johnson, John Palmer, and Emerson Pugh, 1986, MIT Press, ISBN 0-262-02225-7.
  • References

    COMTRAN Wikipedia


    Similar Topics