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:
GO TO
's) are to a paragraph name, not to a line number.AT END
clause on file input operations.HIGH-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.