This shows you the differences between two versions of the page.
Next revision | Previous revision | ||
cobol [2016/08/16 19:30] blair created |
cobol [2017/11/10 23:14] (current) jandal Add description. |
||
---|---|---|---|
Line 1: | Line 1: | ||
- | COBOL Programming | + | ====== |
+ | |||
+ | COBOL, the COmmon Business-Oriented | ||
+ | consortium in 1959. COBOL was designed to be used for business | ||
+ | programming tasks, and, as such, the language has had little interaction | ||
+ | with, or input from, the computer science community. In fact, computer | ||
+ | scientists including Edsger Dijkstra have heavily criticised the | ||
+ | language. | ||
+ | |||
+ | One of the design goals of the language was for COBOL programs to be | ||
+ | readable (and perhaps writable) by non-programmers, | ||
+ | COBOL has, however, arguably failed at this goal. The language adopts an | ||
+ | immensely verbose syntax, but also rigid structural requirements, | ||
+ | have their origins in the era of punched cards. It provides only limited | ||
+ | support for structured programming. | ||
+ | |||
+ | Despite its shortcomings, | ||
+ | government applications, | ||
+ | of COBOL code (a testament to its verbosity as much as its popularity) | ||
+ | are maintained today, primarily as legacy applications. | ||
+ | |||
+ | ===== Example ===== | ||
+ | |||
+ | ==== Hello World ==== | ||
+ | |||
+ | |||
+ | FMT CB ......-A+++B+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ | ||
+ | *************** Beginning of data ************************************* | ||
+ | 0001.00 | ||
+ | 0002.00 | ||
+ | 0003.00 | ||
+ | 0004.00 | ||
+ | ****************** End of data **************************************** |